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.00MB] [CPU: ▼1.53ms] Passed 4 tests
Analyzing server-side resources used by ONVO Pay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.02 ▼3.91 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.76 ▼1.65 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.11 ▼1.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.63 ▲6.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.58 ▲1.10 |
Server storage [IO: ▲0.79MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by ONVO Pay
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.45 ▼0.12 | 2.23 ▲0.50 | 45.04 ▲4.09 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.11 | 81.76 ▼11.31 | 38.55 ▲1.25 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.03 | 35.16 ▼3.60 | 33.94 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.14 ▼0.03 | 585.56 ▼112.24 | 53.25 ▼7.98 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▼0.02 | 97.29 ▲2.23 | 41.76 ▼2.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- 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
Even though no errors were found, 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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'MyCLabs\\Enum\\Enum' not found in wp-content/plugins/onvo-pay/includes/subscription-payment-behavior.php:5
- > PHP Fatal error
Uncaught Error: Class 'MyCLabs\\Enum\\Enum' not found in wp-content/plugins/onvo-pay/includes/currency.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/onvo-pay/vendor/myclabs/php-enum/src/Enum.php:22
- > PHP Fatal error
Uncaught Error: Class 'SebastianBergmann\\Comparator\\Comparator' not found in wp-content/plugins/onvo-pay/vendor/myclabs/php-enum/src/PHPUnit/Comparator.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function ONVO\\Compatibility\\WooCommerce_All_Products_for_Subscriptions\\add_filter() in wp-content/plugins/onvo-pay/includes/compatibility/woocommerce-all-products-for-subscriptions.php:34
- > PHP Fatal error
Uncaught Error: Class 'MyCLabs\\Enum\\Enum' not found in wp-content/plugins/onvo-pay/includes/subscription-status.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
onvo-pay/onvo-pay-gateway.php 69% from 13 tests
The primary PHP file in "ONVO Pay" version 0.9.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 163 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("onvo-pay.php" instead of "onvo-pay-gateway.php")
- Requires at least: Required version must match the one declared in readme.txt ("6.2" instead of "4.0")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,607 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 547 | 982 | 2,179 |
JavaScript | 1 | 36 | 3 | 163 |
Markdown | 2 | 48 | 0 | 157 |
JSON | 2 | 0 | 0 | 108 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 1 | 6.25% |
Methods | 180 | |
▷ Static methods | 41 | 22.78% |
▷ Public methods | 164 | 91.11% |
▷ Protected methods | 2 | 1.11% |
▷ Private methods | 14 | 7.78% |
Functions | 22 | |
▷ Named functions | 20 | 90.91% |
▷ Anonymous functions | 2 | 9.09% |
Constants | 16 | |
▷ Global constants | 4 | 25.00% |
▷ Class constants | 12 | 75.00% |
▷ Public constants | 10 | 83.33% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.66MB with 0.48MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-256x256.png | 19.04KB | 6.54KB | ▼ 65.64% |
assets/images/screenshot-2.png | 202.12KB | 50.68KB | ▼ 74.92% |
assets/images/screenshot-3.png | 200.10KB | 49.42KB | ▼ 75.30% |
assets/images/screenshot-1.png | 255.81KB | 60.98KB | ▼ 76.16% |