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
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.86ms] Passed 4 tests
An overview of server-side resources used by WPSSO Merchant Return Policy Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.99 ▼0.66 |
Dashboard /wp-admin | 3.44 ▲0.09 | 46.95 ▼16.66 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 45.38 ▼0.47 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 90.95 ▼7.72 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 32.39 ▼2.40 |
Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPSSO Merchant Return Policy Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.28 ▼0.04 | 1.86 ▲0.16 | 44.30 ▲0.83 |
Dashboard /wp-admin | 2,201 ▲26 | 5.55 ▼0.18 | 90.69 ▼24.71 | 43.37 ▼0.67 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 1.95 ▼0.01 | 38.23 ▼2.19 | 34.05 ▼1.91 |
Add New Post /wp-admin/post-new.php | 1,534 ▲5 | 23.16 ▼0.04 | 677.40 ▲64.35 | 50.75 ▼4.40 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.12 ▼0.07 | 96.40 ▲1.47 | 42.89 ▲0.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 13× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/wpsso-merchant-return-policy/lib/mrp.php
- > /wp-content/plugins/wpsso-merchant-return-policy/gettext/gettext-lib-abstract-com.php
- > /wp-content/plugins/wpsso-merchant-return-policy/lib/abstract/com/add-on.php
- > /wp-content/plugins/wpsso-merchant-return-policy/lib/register.php
- > /wp-content/plugins/wpsso-merchant-return-policy/lib/abstract/add-on.php
- > /wp-content/plugins/wpsso-merchant-return-policy/lib/filters-edit.php
- > /wp-content/plugins/wpsso-merchant-return-policy/wpsso-merchant-return-policy.php
- > /wp-content/plugins/wpsso-merchant-return-policy/lib/filters-options.php
- > /wp-content/plugins/wpsso-merchant-return-policy/lib/config.php
- > /wp-content/plugins/wpsso-merchant-return-policy/gettext/gettext-lib-config.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: schema, product, return policy, hasmerchantreturnpolicy, merchant...
wpsso-merchant-return-policy/wpsso-merchant-return-policy.php Passed 13 tests
"WPSSO Merchant Return Policy Manager" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
75 characters long description:
Manage any number of Merchant Return Policies for Google Merchant listings.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,220 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 485 | 232 | 954 |
PO File | 1 | 83 | 83 | 201 |
Markdown | 1 | 16 | 0 | 36 |
HTML | 2 | 31 | 0 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.55 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 15 | 25.86% |
▷ Public methods | 49 | 84.48% |
▷ Protected methods | 4 | 6.90% |
▷ Private methods | 5 | 8.62% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-256x256.png | 52.60KB | 19.38KB | ▼ 63.15% |
images/icon-128x128.png | 19.45KB | 7.39KB | ▼ 62.01% |