Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼389.88ms] Passed 4 tests
Analyzing server-side resources used by Treerating Customer Reviews and Ratings
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 40.07 ▲20.54 |
Dashboard /wp-admin | 3.08 ▲0.02 | 39.86 ▼9.17 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 36.78 ▼5.16 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 87.75 ▼1,540.20 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 33.65 ▼4.98 |
Treerating /wp-admin/options-general.php?page=treerating | 2.96 | 24.74 |
Server storage [IO: ▲0.01MB] [DB: ▲0.67MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_treerating_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Treerating Customer Reviews and Ratings
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,680 ▲74 | 15.95 ▲0.43 | 7.30 ▼1.74 | 47.17 ▼1.47 |
Dashboard /wp-admin | 2,938 ▲85 | 5.86 ▲0.01 | 138.32 ▲7.61 | 98.73 ▲2.82 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▼0.00 | 64.45 ▼3.47 | 92.49 ▲3.26 |
Add New Post /wp-admin/post-new.php | 1,482 ▼95 | 17.01 ▼1.47 | 359.94 ▼33.94 | 105.99 ▼7.59 |
Media Library /wp-admin/upload.php | 1,777 ▲2 | 5.01 ▼0.00 | 157.56 ▼1.17 | 102.08 ▼12.18 |
Treerating /wp-admin/options-general.php?page=treerating | 1,025 | 2.09 | 57.14 | 74.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_treerating_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=treerating
- > Notice in wp-content/plugins/treerating-customer-reviews-and-ratings/treerating-admin.php+70
Undefined index: action
SRP 0% 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
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/treerating-customer-reviews-and-ratings/treerating-admin.php
- > /wp-content/plugins/treerating-customer-reviews-and-ratings/treerating.php
- > /wp-content/plugins/treerating-customer-reviews-and-ratings/treerating-widget.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/treerating-customer-reviews-and-ratings/templates/widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/treerating-customer-reviews-and-ratings/templates/admin-form.php:3
- > PHP Notice
Undefined variable: rating in wp-content/plugins/treerating-customer-reviews-and-ratings/templates/widget.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/treerating-customer-reviews-and-ratings/templates/widget.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/treerating-customer-reviews-and-ratings/templates/widget.php on line 4
- > PHP Notice
Undefined variable: rating in wp-content/plugins/treerating-customer-reviews-and-ratings/templates/widget.php on line 4
- > 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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: rating, reviews, treerating, woocommerce
treerating-customer-reviews-and-ratings/treerating.php 77% from 13 tests
Analyzing the main PHP file in "Treerating Customer Reviews and Ratings" version 1.0.0
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("treerating-customer-reviews-and-ratings.php" instead of "treerating.php")
- Domain Path: The domain path folder does not exist ("/i18n/languages/")
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
Good job! No executable or dangerous file extensions detected207 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 34 | 39 | 192 |
CSS | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin