Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▲3.00ms] Passed 4 tests
Server-side resources used by Woo Tuner
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 54.19 ▲6.91 |
Dashboard /wp-admin | 3.47 ▲0.16 | 61.72 ▲5.66 |
Posts /wp-admin/edit.php | 3.59 ▲0.22 | 56.99 ▲0.75 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 114.82 ▼1.31 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 51.50 ▲14.59 |
Order /wp-admin/admin.php?page=woo-tuner-order-widgets | 3.36 | 40.19 |
WooTuner /wp-admin/admin.php?page=woo-tuner-settings | 3.36 | 41.69 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
woo_tuner_version |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Woo Tuner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲146 | 13.47 ▼0.90 | 9.00 ▲7.10 | 43.91 ▲5.59 |
Dashboard /wp-admin | 2,233 ▲56 | 5.91 ▲0.26 | 88.20 ▼4.79 | 39.07 ▼5.29 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 2.07 ▲0.05 | 37.25 ▼1.18 | 33.22 ▼2.12 |
Add New Post /wp-admin/post-new.php | 1,557 ▲134 | 23.19 ▲5.29 | 678.01 ▲83.17 | 51.14 ▲4.38 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.31 ▲0.11 | 110.00 ▲15.73 | 46.96 ▲6.04 |
Order /wp-admin/admin.php?page=woo-tuner-order-widgets | 906 | 1.72 | 25.82 | 36.86 |
WooTuner /wp-admin/admin.php?page=woo-tuner-settings | 831 | 1.73 | 27.54 | 31.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- woo_tuner_version
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-tuner/admin/partials/woo-tuner-admin-display.php
- > /wp-content/plugins/woo-tuner/public/partials/woo-tuner-public-display.php
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woo-tuner-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).sortable is not a function" "TypeError: jQuery(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/woo-tuner/admin/js/woo-tuner-admin.js?ver=1.0.0:47:30)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woo-tuner-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).sortable is not a function
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Requires php: Version format is invalid
woo-tuner/woo-tuner.php Passed 13 tests
The main PHP script in "Woo Tuner" version 0.1.2 is automatically included on every request by WordPress
50 characters long description:
Customize your WooCommerce layouts with one click!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,040 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 165 | 516 | 711 |
CSS | 3 | 4 | 23 | 230 |
JavaScript | 3 | 13 | 31 | 99 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 21.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 5.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.02MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/green@2x.png | 4.39KB | 3.10KB | ▼ 29.48% |
admin/images/pattern-dark.png | 15.81KB | 17.46KB | 0.00% |
admin/css/green.png | 2.14KB | 1.83KB | ▼ 14.55% |