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
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.82ms] Passed 4 tests
A check of server-side resources used by Unify
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.96 ▲5.33 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.18 ▼14.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.23 ▲2.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.23 ▼13.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.11 ▼2.71 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 154 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
unify_plugin_activation_date |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Unify
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.23 ▼1.16 | 1.71 ▲0.13 | 42.72 ▼0.04 |
Dashboard /wp-admin | 2,211 ▲23 | 5.78 ▼0.10 | 101.68 ▼2.74 | 39.04 ▼5.14 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.07 | 35.74 ▼0.34 | 36.84 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,528 ▲4 | 22.87 ▼0.25 | 667.24 ▲1.84 | 60.98 ▼7.58 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.25 ▲0.04 | 100.00 ▲1.95 | 43.61 ▲1.10 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- unify_plugin_activation_date
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/unify/Lib/_SelfLoader-1.0/bin/loader.php
- > /wp-content/plugins/unify/Templates/Mail/request-unfiy-pro-user.php
- > /wp-content/plugins/unify/Templates/footer.php
- > /wp-content/plugins/unify/Templates/Mail/request-unfiy-pro.php
- > /wp-content/plugins/unify/Templates/cc_payment.php
- 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/unify/Templates/Tools/shipping-mapping.php:6
- > PHP Fatal error
Uncaught Error: Class 'CodeClouds\\Unify\\Service\otice' not found in wp-content/plugins/unify/Templates/pro-dashboard.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/unify/Templates/about.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/unify/Templates/Pagination/pagination-template.php:6
- > PHP Fatal error
Uncaught Error: Class 'CodeClouds\\Unify\\Service\otice' not found in wp-content/plugins/unify/Templates/upgrade-to-pro.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/unify/Templates/Tools/import-export.php:8
- > PHP Notice
Undefined variable: prev_dis in wp-content/plugins/unify/Templates/Pagination/pagination-template.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/unify/Models/Unify_Payment.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/unify/Templates/pro-settings.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/unify/Templates/paypal-checkout-button.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
unify/unify.php 92% from 13 tests
The main PHP file in "Unify" ver. 3.4.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected17,826 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 89 | 1,418 | 1,311 | 8,213 |
CSS | 4 | 951 | 150 | 6,110 |
JavaScript | 13 | 591 | 297 | 3,159 |
JSON | 9 | 3 | 0 | 266 |
SVG | 10 | 0 | 2 | 59 |
Markdown | 1 | 11 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 22.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 1 | 2.27% |
Methods | 268 | |
▷ Static methods | 161 | 60.07% |
▷ Public methods | 206 | 76.87% |
▷ Protected methods | 9 | 3.36% |
▷ Private methods | 53 | 19.78% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
23 PNG files occupy 0.19MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paypal-white.png | 12.79KB | 6.84KB | ▼ 46.51% |
assets/images/icon-prodmap.png | 1.26KB | 0.94KB | ▼ 25.31% |
assets/images/paypal-3.png | 3.02KB | 1.54KB | ▼ 48.88% |
assets/images/unify-white.png | 1.27KB | 0.62KB | ▼ 51.43% |
assets/images/paypal-blue.png | 14.25KB | 7.92KB | ▼ 44.47% |