Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼0.45ms] Passed 4 tests
A check of server-side resources used by WP Deploy Flow
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.64 ▼1.09 |
Dashboard /wp-admin | 3.45 ▲0.14 | 48.81 ▼1.54 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.71 ▲2.75 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 97.40 ▲4.56 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 34.13 ▼1.93 |
Deploy /wp-admin/tools.php?page=deployment | 3.59 | 32.37 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Deploy Flow
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.72 ▼0.59 | 1.57 ▼0.35 | 42.16 ▼2.17 |
Dashboard /wp-admin | 2,210 ▲21 | 4.84 ▼1.10 | 110.85 ▼10.40 | 40.80 ▼6.18 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.01 | 39.59 ▲3.81 | 36.33 ▲3.28 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 17.98 ▼0.07 | 631.37 ▼27.63 | 63.01 ▲10.15 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.25 ▲0.07 | 99.88 ▲2.85 | 40.64 ▼4.67 |
Deploy /wp-admin/tools.php?page=deployment | 1,031 | 2.01 | 24.58 | 27.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\DES' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php:46
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC2.php:44
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/DES.php:52
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php:48
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function WP_Deploy_Flow\\add_action() in wp-content/plugins/wp-deploy-flow/lib/api.php:512
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-deploy-flow/lib/srdb.class.php on line 860
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-deploy-flow/test.php:3
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\et\\SSH2' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:47
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% 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
2 plugin tags: deployment, cli
wp-deploy-flow/deploy.php 92% from 13 tests
Analyzing the main PHP file in "WP Deploy Flow" version 0.1
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-deploy-flow.php" instead of "deploy.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin20,915 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 3,648 | 11,715 | 20,320 |
JSON | 3 | 0 | 0 | 227 |
CSS | 1 | 9 | 0 | 199 |
Markdown | 2 | 46 | 0 | 85 |
JavaScript | 1 | 0 | 0 | 84 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 99.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 591.00 |
Average method complexity | 6.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 1 | 2.94% |
▷ Concrete classes | 33 | 97.06% |
▷ Final classes | 0 | 0.00% |
Methods | 663 | |
▷ Static methods | 24 | 3.62% |
▷ Public methods | 647 | 97.59% |
▷ Protected methods | 14 | 2.11% |
▷ Private methods | 2 | 0.30% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 176 | |
▷ Global constants | 21 | 11.93% |
▷ Class constants | 155 | 88.07% |
▷ Public constants | 155 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin