Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.12ms] Passed 4 tests
A check of server-side resources used by TWB Woocommerce Reviews
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.18 ▲1.13 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.98 ▼2.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.63 ▼3.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 82.66 ▼7.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.05 ▲3.25 |
TWB Woocommerce Reviews /wp-admin/options-general.php?page=twb-woocommerce-reviews/admin/options.php | 3.21 | 31.61 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for TWB Woocommerce Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲74 | 13.26 ▼1.32 | 3.58 ▲1.82 | 39.17 ▼1.82 |
Dashboard /wp-admin | 2,217 ▲29 | 4.86 ▼0.02 | 104.97 ▼2.92 | 40.07 ▼1.07 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.03 | 38.36 ▼3.30 | 32.57 ▼6.98 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 23.09 ▲5.42 | 632.01 ▼66.56 | 51.08 ▼7.16 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.20 ▼0.05 | 93.16 ▼14.32 | 41.27 ▼2.34 |
TWB Woocommerce Reviews /wp-admin/options-general.php?page=twb-woocommerce-reviews/admin/options.php | 1,316 | 2.53 | 47.69 | 29.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% 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 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/twb-woocommerce-reviews/twb_wc_reviews_functions.php
- > /wp-content/plugins/twb-woocommerce-reviews/twb-wc-reviews.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twb-woocommerce-reviews/admin/options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/twb-woocommerce-reviews/twb-output.php:3
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
twb-woocommerce-reviews/twb-wc-reviews.php 85% from 13 tests
The main PHP script in "TWB Woocommerce Reviews" version 1.7.5 is automatically included on every request by WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 306 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("twb-woocommerce-reviews.php" instead of "twb-wc-reviews.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin866 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 162 | 78 | 590 |
CSS | 2 | 10 | 7 | 271 |
JavaScript | 2 | 2 | 19 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin