Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼144.71ms] Passed 4 tests
Analyzing server-side resources used by Woo USP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 26.69 ▼7.95 |
Dashboard /wp-admin | 3.10 ▲0.05 | 54.70 ▲7.89 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 44.86 ▼0.56 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 95.34 ▼570.11 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 33.32 ▼0.21 |
Woo USPs /wp-admin/options-general.php?page=wcusp-options | 3.00 | 27.95 |
Server storage [IO: ▲2.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 63 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Woo USP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,730 ▲134 | 16.68 ▲0.68 | 10.70 ▼0.49 | 45.46 ▼7.98 |
Dashboard /wp-admin | 3,016 ▲79 | 7.13 ▲1.17 | 147.89 ▲3.26 | 108.17 ▲1.11 |
Posts /wp-admin/edit.php | 2,785 ▲46 | 3.04 ▲0.32 | 71.54 ▼1.96 | 94.41 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,649 ▼34 | 21.76 ▲3.44 | 299.09 ▼73.49 | 116.87 ▲4.86 |
Media Library /wp-admin/upload.php | 1,850 ▲40 | 5.41 ▲0.40 | 134.78 ▼11.66 | 117.81 ▼2.38 |
Woo USPs /wp-admin/options-general.php?page=wcusp-options | 1,588 | 2.57 | 79.38 | 72.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wcusp-options
- > Notice in wp-content/plugins/woo-usp/includes/admin-options.php+108
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-usp/includes/form-markup.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-usp/assets/scripts.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-usp/woo-usp.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-usp/includes/admin-options.php:134
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Plugin Name: Please specify the plugin name on the first line (
=== woo-usp ===
)
woo-usp/woo-usp.php 92% from 13 tests
The main PHP script in "Woo USP" version 2.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
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
Good job! No executable or dangerous file extensions detected20,950 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 6,518 |
SVG | 3 | 0 | 0 | 3,339 |
CSS | 6 | 23 | 26 | 3,136 |
HTML | 2 | 178 | 6 | 3,117 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
JavaScript | 3 | 26 | 28 | 1,067 |
PHP | 5 | 49 | 49 | 247 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 10 | |
▷ Named functions | 10 | 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 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin