PHP Pseudo Compiler

日落版
该插件的此更新是最后一个公开发布的版本. 我们不希望做任何重大变化,或从现在开始添加新的功能,它.

我们可能并不总是能为这个插件的WordPress.org论坛提供及时的支持. 如果你想有专业的支持或额外/自定义功能, 考虑购买 Pro版.

PHP Pseudo Compiler is a developer tool. It scans the file you specify and determines whether you have undefined functions or methods.

Why not just run the PHP code, you say? 好, PHP is not a compiled language. It looks for functions during runtime. So if you have a segment of code not covered by your normal testing, and you have an undefined function in there, you will never know of the undefined function until it hits production when the particular conditions activating that particular code segment are met. This tool will prove especially useful during large scale refactoring.

Live Demo

PHP Pseudo Compiler has a beautifully designed admin interface, which is feature-rich, user-friendly and functional. Please visit this fully operational live demo site to see it in action, (and to check your code without installing it locally).

Now available in your language using Google Translate.

产品特点

  • Modern Admin Interface: PHP Pseudo Compiler sports a modern and beautiful admin interface based on the twitter bootstrap framework.
  • Admin Interface Tour: A slick tour will take you around the admin page and familiarize you with its features.
  • Generous Help: 当你需要帮助, the information and hint is only a click away in PHP Pseudo Compiler. (事实上, 它只是一个鼠标悬停的路程。) Robust Security: Unbreakable authentication (using hash and salt), impervious to SQL injection etc.
  • WordPress Integration: PHP Pseudo Compiler comes with built-in WordPress integration. It works as a WordPress plugin if uploaded to the wp-content/plugins folder of your blog. What's more, you can switch to the standalone mode from the WordPress plugin admin page of this application, while still using the WordPress authentication mechanism and database.

专业版

除了全功能的精简版版本, PHP Pseudo Compiler 也有一个 Pro版 还有更多的功能. These features are highlighted by a red icon in the menus of the lite version.

  • Upload and Check PHP packages: 在 版本, you can upload a package as a zip file and check for missing function/method definitions.
  • WordPress Support: 该 version can load and check any plugin on your server, and recognizes WordPress functions.
  • Skinnable Admin Interface: 在 版本, you can select the color schemes of your admin pages from nine different skins.
  • Advanced Options: The Pro version lets you configure advanced options like suppressing duplicates, displaying all detected tokens, ability to do dynamic code analysis etc.
  • Execution Parameters: Ability to specify the maximum execution time and memory size for large compilation jobs.

安装

要安装它作为一个WordPress插件, 请使用插件的安装界面.

  1. Search for the plugin PHP Pseudo Compiler from your admin menu Plugins -> Add New.
  2. 点击安装.

它也可以从下载的zip压缩包安装.

  1. 转到您的管理菜单插件 - >添新, and click on "上传插件" near the top.
  2. 浏览zip文件,然后点击上传.

一旦上载和激活,

  1. Visit the PHP Pseudo Compiler plugin admin page to configure it.
  2. Take a tour of the plugin features from the PHP Pseudo Compiler admin menu Tour and Help.

If you would like to temporarily switch to the standalone mode of the plugin, 点击 "Standalone Mode" button near the top right corner of PHP Pseudo Compiler screens. You can install it permanently in standalone mode (using its own database and authentication) by uploading the zip archive to your server.

  1. Upload the contents of the archive php-validator to your server.
  2. Browse to the location where your uploaded the package (http://yourserver/php-validator, 例如) using your web browser, and click on the green "Launch Installer" 按钮.
  3. Follow wizard to visit the admin page, login, configure basic options.

截图

  1. PHP Pseudo Compiler admin page, with quick start, help and support info.  Screenshot [php-pseudo-compiler] 1
  2. PHP Pseudo Compiler - how to launch it.  Screenshot [php-pseudo-compiler] 2
  3. Options page.  Screenshot [php-pseudo-compiler] 3
  4. PHP Pseudo Compiler output.  Screenshot [php-pseudo-compiler] 4
  5. Advanced Options in the Pro version showing a dark theme.  Screenshot [php-pseudo-compiler] 5

更改日志

  • V2.80: 与WP4.6兼容性. 积累了许多修正和变化. 释放夕阳版本. [十月 12, 2016]
  • V2.70: Compatibility with WP4.5. [四月 12, 2016]
  • V2.66: Improvements in the Google Translator interface. Compatibility with multisite installaton of subdomain type. [二月 27, 2016]
  • V2.65: Minor interface and documentation changes. [二月 25, 2016]
  • V2.64: Changes in the DB interface to handle the case where native drivers are not installed. Restricting Google Translate not to translate user-editable strings. Optimizing screenshots. [二月 7, 2016]
  • V2.63: Adding diagnostic information on the update page. [一月 20, 2015]
  • V2.62: Adding a dev-friendly include to introduce local settings, 如果有的话. [十二月 30, 2015]
  • V2.61: Refactoring changes in admin footer rendering. [十二月 15, 2015]
  • V2.60: Compatibility with WordPress 4.4. [十二月 5, 2015]
  • V2.53: Making the admin menu dynamic (optionally) in standalone mode. Fixing a DB error handling bug. Improving Windows IIS compatibility. [十一月 29, 2015]
  • V2.52: Warning about PHP V5.4 requirement on the admin page. [十一月 8, 2015]
  • V2.51: Enforcing PHP V5.4 requirement at activation time. [十月 27, 2015]
  • V2.50: Admin pages in your language using Google translation. [十月 22, 2015]
  • V2.42: Improving the speed of admin page loading. [九月 30, 2015]
  • V2.41: Killing the option to allow update checks. [九月 26, 2015]
  • V2.40: Changes to make the plugin work on nginx and Microsoft servers. [九月 20, 2015]
  • V2.33: Removing an unused ajax handler. [九月 17, 2015]
  • V2.32: Ensuring usability on touch-screen devices. Removing an unused class and file. [九月 17, 2015]
  • V2.31: Reinstating the option to force the admin page loading, moving to a less colorful default theme. [九月 14, 2015]
  • V2.30: Adding better error handling on invalid requests, adding a link to the plugin admin page on WP plugins page, adding the ability to rerun the installer. [九月 12, 2015]
  • V2.20: Removing WP core file loading and refactoring header and menus. [九月 4, 2015]
  • V2.11: 重构改变, code clean up and fixing some W3 validation errors. [八月 23, 2015]
  • V2.10: Releasing a live demo site. [八月 21, 2015]
  • V2.05: Adding warnings about undetectable methods. [八月 20, 2015]
  • V2.04: Documentation and refactoring changes only. [八月 18, 2015]
  • V2.03: Making the compiler more robust. [八月 17, 2015]
  • V2.02: Updating a screenshot, further minor fixes. [八月 17, 2015]
  • V2.01: Bug fix in the AJAX error handler. [八月 17, 2015]
  • V2.00: Major rewrite of the whole code base using the twitter bootstrap framework. Compatibility with WordPress V4.3. [八月 15, 2015]
  • V1.30: Minor fixes. Compatibility with WordPress V4.0. [九月 8, 2014]
  • V1.21: 轻微重构改变. [海 25, 2014]
  • V1.20: 兼容性检查的WordPress V3.8. Adding more help on admin page. [十二月 20, 2013]
  • V1.10: Compatibility checks for WordPress V3.7. [十一月 11, 2013]
  • V1.03: Bug修复 (Fatal error: Call-time pass-by-reference has been removed). [一月 28, 2013]
  • V1.02: Renaming the plugin to drop the word Lite. [五月 12, 2012]
  • V1.01: Minor code changes. [四月 20, 2012]
  • V1.00: 初始发行. [四月 3, 2012]

常问问题

这是什么程序做?

PHP Pseudo Compiler is a developer tool. It scans the file you specify and determines whether you have undefined functions or methods.

What do I enter in "List of Files"?

You enter the path names of the files you would like to validate. 注意 PHP Pseudo Compiler runs on your server, and the files need to be accessible by your web server. Please specify the files relative to your wp-content/plugins 目录, or by typing in their full path names. You can enter multiple file names separated by commas.

What do I enter in "Folder Location"?

PHP Pseudo Compiler can recursively load an entire folder on your server to validate the files therein. Specify a path relative to your wp-content/plugins 位置 (as shown in the help bubble), or as an absolute path.

What about "Upload Application"?

Using this file upload method, you can upload an entire PHP application (as a ZIP file) to your server and validate it by pseudo-compiling it. The uploaded ZIP file will be unpacked into a temporary folder and scanned for undefined functions and methods. Since the temporary locations have random names and cannot execute PHP files through external invocations, the security risk is believed to be non-existent.

How do I use the "Select a Plugin" dropdown menu?

Similar to the file upload method, you can validate any plugin installed on your WordPress server (both active and inactive ones) by pseudo-compiling it. Select a plugin and wait for the output.

What is the purpose of the "Execute the Files" 选项?

The uploaded files are parsed and examined statically by default. If you would like to do dynamic analysis by executing the files, please check here. Please note that executing uploaded files may have side effects, and it may be a security hole as well. For that reason, this Pro option self-disables after each execution. Dynamic analysis is of limited value when analyzing object-oriented projects because of the inherent statefulness of the code.

Digital Goods

ezPayPalPlease visit our e-shop selling all sorts of digital goods -- 高级WordPress的插件, PHP packages, Mac Apps, eBooks etc. It runs on my own ezPayPal package, which you can purchase if you would like to start a similar e-commerce gateway. 做检查出来!
另请参见:  Other packages
如果你喜欢我的插件的努力, 请使用以下的Facebook登录发表评论.
如果您需要帮助, 请使用我们的 支持门户 代替.  ezSupport Portal
[自豪地给你带来 EZ 朋友.]

评论