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.31MB] [CPU: ▼6.64ms] Passed 4 tests
A check of server-side resources used by Woo Product Options
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 41.24 ▲5.38 |
Dashboard /wp-admin | 3.68 ▲0.34 | 45.21 ▼18.19 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 1,366.11 ▲1,321.23 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 81.92 ▼12.71 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 35.56 ▼1.03 |
Woo Product Options /wp-admin/edit.php?post_type=product&page=woopo | 3.37 | 24.63 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woo Product Options
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,046 ▲300 | 15.65 ▲1.27 | 33.82 ▲32.08 | 42.42 ▲4.96 |
Dashboard /wp-admin | 2,397 ▲205 | 5.86 ▲0.86 | 95.53 ▼8.91 | 38.55 ▼1.51 |
Posts /wp-admin/edit.php | 2,278 ▲189 | 2.00 ▼0.01 | 35.31 ▲1.16 | 32.09 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,720 ▲192 | 23.39 ▲5.18 | 645.09 ▲29.35 | 57.37 ▼1.46 |
Media Library /wp-admin/upload.php | 1,580 ▲192 | 4.23 ▲0.04 | 103.72 ▼9.76 | 45.42 ▼5.00 |
News /wp-admin/edit.php?post_type=product&page=woopo#/cc-news | 28 | 0.44 | 0.07 | 3.81 |
Help /wp-admin/edit.php?post_type=product&page=woopo#/help | 28 | 0.44 | 0.10 | 3.85 |
Woo Product Options /wp-admin/edit.php?post_type=product&page=woopo | 28 | 0.44 | 0.08 | 3.58 |
Product Options Settings /wp-admin/edit.php?post_type=product&page=woopo#/settings | 28 | 0.44 | 0.09 | 3.87 |
Upgrage Woo Product Options /wp-admin/edit.php?post_type=product&page=woopo#/get-pro | 28 | 0.44 | 0.09 | 3.46 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-product-options/templates/form-items.php
- > /wp-content/plugins/woo-product-options/templates/core/form-builder.php
- > /wp-content/plugins/woo-product-options/templates/edit-form.php
- > /wp-content/plugins/woo-product-options/data.php
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/woo-product-options/form-type-data.php:2
- > PHP Fatal error
Uncaught Error: Class 'Woopo_Functions' not found in wp-content/plugins/woo-product-options/templates/form-types.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-options/admin-product-single.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-options/form-builder-admin.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_statuses() in wp-content/plugins/woo-product-options/templates/forms.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-product-options/templates/promo-get-pro.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-product-options/templates/form.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-options/woopo-applications.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-product-options/templates/help.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-options/public-single-product.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=product&page=woopo#/cc-news
- > Network (severe)
wp-admin/edit.php?post_type=product&page=woopo#/cc-news - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/edit.php?post_type=product&page=woopo#/help
- > Network (severe)
wp-admin/edit.php?post_type=product&page=woopo#/help - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/edit.php?post_type=product&page=woopo
- > Network (severe)
wp-admin/edit.php?post_type=product&page=woopo - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/edit.php?post_type=product&page=woopo#/settings
- > Network (severe)
wp-admin/edit.php?post_type=product&page=woopo#/settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/edit.php?post_type=product&page=woopo#/get-pro
- > Network (severe)
wp-admin/edit.php?post_type=product&page=woopo#/get-pro - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #6, #7 in woo-product-options/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 60 tag instead of maximum 10
woo-product-options/woo-product-options.php 85% from 13 tests
The main file in "Woo Product Options" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin23,737 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 1,318 | 1,556 | 11,742 |
JSON | 2 | 0 | 0 | 6,201 |
PHP | 25 | 343 | 252 | 3,257 |
CSS | 3 | 2 | 50 | 2,098 |
LESS | 1 | 14 | 20 | 438 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 34 | 37.78% |
▷ Public methods | 90 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
There were not PNG files found in your plugin