Benchmarks
Plugin footprint 83% from 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.01MB] [CPU: ▼1.66ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Bundle Style Coupons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.82 ▼5.86 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.52 ▼0.45 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.34 ▲1.81 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 100.99 ▲0.38 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.28 ▼0.69 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Bundle Style Coupons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.34 ▼0.95 | 1.62 ▼0.56 | 37.18 ▼11.35 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▼0.02 | 107.45 ▼5.01 | 41.64 ▼0.71 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▼0.01 | 40.57 ▼0.38 | 36.41 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.35 ▲0.28 | 653.08 ▼46.37 | 49.91 ▼7.66 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.25 ▲0.03 | 100.58 ▼1.09 | 42.55 ▼1.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-bundle-style-coupons/wc-bundle-style-coupons.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: woocommerce
woocommerce-bundle-style-coupons/wc-bundle-style-coupons.php 85% from 13 tests
The entry point to "WooCommerce Bundle Style Coupons" version 0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.5" instead of "3.9.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-bundle-style-coupons.php" instead of "wc-bundle-style-coupons.php")
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
Good job! No executable or dangerous file extensions detected87 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 39 | 54 |
PO File | 1 | 3 | 4 | 25 |
Markdown | 1 | 4 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin