Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼10.12ms] Passed 4 tests
Analyzing server-side resources used by PHP Compatibility Checker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.58 ▼0.28 |
Dashboard /wp-admin | 3.41 ▲0.06 | 46.57 ▼20.26 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.98 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 81.72 ▼17.05 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 35.31 ▼2.66 |
PHP Compatibility /wp-admin/tools.php?page=wpe-php-compat | 3.35 | 35.19 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wpephpcompat_is_wptide |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for PHP Compatibility Checker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼0.97 | 1.79 ▼0.02 | 43.98 ▲1.29 |
Dashboard /wp-admin | 2,210 ▲22 | 4.83 ▼1.02 | 98.74 ▼23.10 | 36.72 ▼6.12 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 34.61 ▼0.68 | 34.47 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.48 ▲6.04 | 667.63 ▼12.43 | 51.70 ▼1.40 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.02 | 95.87 ▼1.26 | 40.59 ▼4.32 |
PHP Compatibility /wp-admin/tools.php?page=wpe-php-compat | 956 | 2.41 | 31.78 | 28.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function WPEngine_PHPCompat\\add_action() in wp-content/plugins/php-compatibility-checker/wpengine-phpcompat.php:92
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: wpe, php 7, compat, checker, wp engine...
php-compatibility-checker/wpengine-phpcompat.php 77% from 13 tests
The main file in "PHP Compatibility Checker" v. 1.6.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("php-compatibility-checker.php" instead of "wpengine-phpcompat.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected412 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 100 | 186 | 410 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 7 | 53.85% |
▷ Anonymous functions | 6 | 46.15% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin