Benchmarks
Plugin footprint 65% 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.45MB] [CPU: ▼33.19ms] Passed 4 tests
Server-side resources used by Product Review
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 42.44 ▲4.66 |
Dashboard /wp-admin | 3.54 ▲0.19 | 27.79 ▼33.79 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 25.94 ▼19.24 |
Add New Post /wp-admin/post-new.php | 3.54 ▼2.35 | 27.48 ▼74.68 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 30.67 ▼5.06 |
Product Review /wp-admin/admin.php?page=product-review | 3.54 | 26.45 |
Add-ons /wp-admin/admin.php?page=product-review-add-ons | 3.54 | 27.41 |
Server storage [IO: ▲2.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 99 new files
Database: no new tables, 10 new options
New WordPress options |
---|
cbpr_appearance |
widget_cbpr-widget |
theysaidso_admin_options |
cbpr_general |
cbpr_activated |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Product Review: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,145 ▲399 | 15.67 ▲1.13 | 10.51 ▲8.80 | 43.75 ▼2.11 |
Dashboard /wp-admin | 2,431 ▲243 | 6.66 ▲1.79 | 124.65 ▲20.11 | 42.03 ▼1.09 |
Posts /wp-admin/edit.php | 2,377 ▲288 | 3.72 ▲1.71 | 65.83 ▲26.89 | 34.30 ▲2.21 |
Add New Post /wp-admin/post-new.php | 7,094 ▲5,426 | 22.49 ▲0.22 | 952.74 ▲267.46 | 44.14 ▼15.28 |
Media Library /wp-admin/upload.php | 1,479 ▲94 | 4.43 ▲0.21 | 82.84 ▼21.04 | 42.51 ▼1.42 |
Product Review /wp-admin/admin.php?page=product-review | 2,485 | 5.02 | 104.96 | 30.86 |
Add-ons /wp-admin/admin.php?page=product-review-add-ons | 1,131 | 3.58 | 44.77 | 74.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/product-review/vendor/wordpress-settings-api/class.settings-api.php+108
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 10 options in the database
- theysaidso_admin_options
- cbpr_general
- can_compress_scripts
- db_upgraded
- cbpr_appearance
- widget_cbpr-widget
- cbpr_activated
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=product-review-add-ons
- > Deprecated in wp-content/plugins/product-review/vendor/wordpress-settings-api/class.settings-api.php+108
Function create_function() is deprecated
- 18 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=product-review-add-ons
- > Notice in wp-content/plugins/product-review/vendor/wordpress-settings-api/class.settings-api.php+143
Undefined index: disabled
- 50 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=product-review-add-ons
- > Notice in wp-content/plugins/product-review/vendor/wordpress-settings-api/class.settings-api.php+144
Undefined index: readonly
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=product-review-add-ons
- > Notice in wp-content/plugins/product-review/includes/class-product-review-add-ons.php+99
Undefined index: product-review-pro/product-review-pro.php
- > GET request to /wp-admin/admin.php?page=product-review-add-ons
- > Notice in wp-content/plugins/product-review/includes/class-product-review-add-ons.php+104
Undefined index: product-review-rich-snippet/product-review-rich-snippet.php
- > GET request to /wp-admin/admin.php?page=product-review-add-ons
- > Notice in wp-content/plugins/product-review/includes/class-product-review-add-ons.php+104
Undefined index: product-review-style-editor/product-review-style-editor.php
- > GET request to /wp-admin/admin.php?page=product-review-add-ons
- > Notice in wp-content/plugins/product-review/includes/class-product-review-add-ons.php+104
Undefined index: product-review-pros-cons/product-review-pros-cons.php
- > GET request to /wp-admin/admin.php?page=product-review-add-ons
- > Notice in wp-content/plugins/product-review/includes/class-product-review-add-ons.php+104
Undefined index: product-review-user-rating/product-review-user-rating.php
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
Please fix the following items
- 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required './vendor/mdc-meta-box/class.mdc-meta-box.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-review/includes/meta-box/settings.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function cbpr_meta() in wp-content/plugins/product-review/public/templates/footer.php:7
- > PHP Fatal error
require_once(): Failed opening required './vendor/wordpress-settings-api/class.settings-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-review/includes/class-product-review-options.php on line 3
- > PHP Warning
Use of undefined constant CB_PRODUCT_REVIEW - assumed 'CB_PRODUCT_REVIEW' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-review/includes/meta-box.php on line 5
- > PHP Fatal error
require_once(): Failed opening required './vendor/mdc-meta-box/class.mdc-meta-box.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-review/includes/meta-box/affiliate.php on line 5
- > PHP Warning
require_once(./includes/meta-box/settings.php): failed to open stream: No such file or directory in wp-content/plugins/product-review/includes/meta-box.php on line 5
- > PHP Fatal error
require_once(): Failed opening required './vendor/mdc-meta-box/class.mdc-meta-box.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-review/includes/meta-box/review.php on line 5
- > PHP Warning
Use of undefined constant CB_PRODUCT_REVIEW - assumed 'CB_PRODUCT_REVIEW' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-review/includes/meta-box/affiliate.php on line 5
- > PHP Fatal error
require_once(): Failed opening required './includes/meta-box/settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-review/includes/meta-box.php on line 5
- > PHP Warning
Use of undefined constant CB_PRODUCT_REVIEW - assumed 'CB_PRODUCT_REVIEW' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-review/includes/meta-box/settings.php on line 5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=product-review-add-ons
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/product-review/admin/assets/js/product-review-admin.js?ver=1.2.3:100:37)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=product-review-add-ons
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Add a description for screenshot #18 in product-review/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
product-review/product-review.php Passed 13 tests
"Product Review" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
35 characters long description:
Product Review Plugin for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin14,192 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 3,644 |
CSS | 6 | 51 | 36 | 3,063 |
PHP | 33 | 534 | 912 | 2,607 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
JavaScript | 3 | 308 | 48 | 1,026 |
Markdown | 2 | 47 | 0 | 326 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 4 | 3.74% |
▷ Public methods | 96 | 89.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 10.28% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/rich-snippets.png | 16.84KB | 6.79KB | ▼ 59.66% |
public/assets/img/product.png | 90.50KB | 26.07KB | ▼ 71.19% |