Benchmarks
Plugin footprint 82% 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.43MB] [CPU: ▲300.16ms] 50% from 4 tests
This is a short check of server-side resources used by Shopper Approved Reviews
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 592.08ms on /wp-admin/admin.php?page=shopperapproved_widgets_menu)
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 300.16ms on /wp-admin/admin.php?page=shopperapproved_productfeed_menu)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 723.02 ▲684.80 |
Dashboard /wp-admin | 3.73 ▲0.43 | 383.52 ▲334.90 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 348.19 ▲298.82 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.45 | 368.90 ▲275.36 |
Media Library /wp-admin/upload.php | 3.65 ▲0.43 | 327.01 ▲291.55 |
Thank You Page Survey /wp-admin/admin.php?page=shopperapproved_thankyou_menu | 3.60 | 302.18 |
Shopper Approved /wp-admin/admin.php?page=shopperapproved_main_menu | 3.60 | 313.99 |
Seals & Widgets /wp-admin/admin.php?page=shopperapproved_widgets_menu | 3.62 | 592.08 |
Product Feed /wp-admin/admin.php?page=shopperapproved_productfeed_menu | 3.60 | 311.94 |
Server storage [IO: ▲4.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 162 new files
Database: no new tables, 23 new options
New WordPress options |
---|
sa_rp_status |
sa_product_stars_code |
widget_recent-posts |
sa_seal_code |
db_upgraded |
sa_review_page_code |
sa_seal_presets |
sa_site_id |
sa_domain |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Shopper Approved Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲238 | 15.38 ▲0.80 | 5.50 ▲3.77 | 38.23 ▼3.44 |
Dashboard /wp-admin | 2,266 ▲78 | 6.56 ▲1.68 | 115.79 ▲3.98 | 77.18 ▲32.04 |
Posts /wp-admin/edit.php | 2,167 ▲78 | 3.27 ▲1.27 | 46.05 ▲5.10 | 74.99 ▲36.47 |
Add New Post /wp-admin/post-new.php | 6,421 ▲4,884 | 27.31 ▲9.07 | 961.59 ▲321.56 | 58.18 ▼0.22 |
Media Library /wp-admin/upload.php | 1,527 ▲142 | 5.51 ▲1.34 | 108.38 ▲8.66 | 85.64 ▲41.30 |
Thank You Page Survey /wp-admin/admin.php?page=shopperapproved_thankyou_menu | 750 | 1.45 | 8.78 | 19.99 |
Shopper Approved /wp-admin/admin.php?page=shopperapproved_main_menu | 738 | 1.63 | 8.97 | 19.48 |
Seals & Widgets /wp-admin/admin.php?page=shopperapproved_widgets_menu | 839 | 2.96 | 35.14 | 26.14 |
Product Feed /wp-admin/admin.php?page=shopperapproved_productfeed_menu | 750 | 1.63 | 8.67 | 20.32 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 13 options
- widget_theysaidso_widget
- can_compress_scripts
- sa_category_code
- sa_seal_code
- sa_review_page_code
- sa_api_token
- sa_product_stars_code
- db_upgraded
- sa_product_widget_code
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/shopperapproved-reviews/admin/class-sa-woo-integrations.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shopperapproved-reviews/admin/class-woocommerce-integrations.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shopperapproved-reviews/trunk/admin/class-woocommerce-integrations.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/shopperapproved-reviews/trunk/admin/class-sa-woo-integrations.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is missing
shopperapproved-reviews/shopperapproved.php 77% from 13 tests
This is the main PHP file of "Shopper Approved Reviews" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "5.4")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shopperapproved-reviews.php" instead of "shopperapproved.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.4")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin6,154 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 210 | 859 | 2,286 |
CSS | 5 | 279 | 27 | 1,969 |
JavaScript | 17 | 121 | 101 | 1,898 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 158 | |
▷ Static methods | 14 | 8.86% |
▷ Public methods | 118 | 74.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 40 | 25.32% |
Functions | 50 | |
▷ Named functions | 48 | 96.00% |
▷ Anonymous functions | 2 | 4.00% |
Constants | 24 | |
▷ Global constants | 6 | 25.00% |
▷ Class constants | 18 | 75.00% |
▷ Public constants | 18 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
40 PNG files occupy 0.89MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-6.png | 48.26KB | 22.23KB | ▼ 53.95% |
assets/images/screenshot-4.png | 28.57KB | 13.69KB | ▼ 52.09% |
assets/images/imagine-reviews.png | 8.68KB | 5.17KB | ▼ 40.45% |
assets/images/banner-772x250-rtl.png | 34.72KB | 15.86KB | ▼ 54.32% |
trunk/assets/images/img-step-4.png | 14.19KB | 5.12KB | ▼ 63.92% |