Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲2.13MB] [CPU: ▼282.21ms] Passed 4 tests
Server-side resources used by Turbo Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.61 ▲2.10 | 74.27 ▲17.66 |
Dashboard /wp-admin | 5.54 ▲2.13 | 47.71 ▲10.13 |
Posts /wp-admin/edit.php | 5.83 ▲2.19 | 53.48 ▲16.89 |
Add New Post /wp-admin/post-new.php | 9.07 ▲2.10 | 112.75 ▼1,167.99 |
Media Library /wp-admin/upload.php | 5.49 ▲2.19 | 39.23 ▲12.14 |
Turbo Sidebars /wp-admin/edit.php?post_type=turbo_sidebar_cpt | 5.53 | 41.60 |
Freemius Debug [v.1.2.2.10] /wp-admin/admin.php?page=freemius | 5.57 | 38.70 |
Turbo Widgets /wp-admin/admin.php?page=turbo-widgets | 5.57 | 45.66 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 183 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_api_cache |
fs_debug_mode |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for Turbo Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,941 ▲182 | 16.34 ▲1.05 | 9.37 ▲2.07 | 2.79 ▲0.02 |
Dashboard /wp-admin | 2,935 ▲74 | 6.01 ▼0.18 | 117.60 ▼25.27 | 246.70 ▲84.73 |
Posts /wp-admin/edit.php | 2,737 ▲46 | 3.25 ▲0.01 | 64.22 ▼24.52 | 158.00 ▼7.49 |
Add New Post /wp-admin/post-new.php | 1,685 ▲27 | 20.20 ▼0.30 | 392.91 ▼54.42 | 178.94 ▲19.43 |
Media Library /wp-admin/upload.php | 1,742 ▲44 | 5.55 ▲0.08 | 152.69 ▲3.34 | 210.47 ▲18.08 |
Turbo Sidebars /wp-admin/edit.php?post_type=turbo_sidebar_cpt | 1,413 | 3.16 | 64.60 | 133.02 |
Freemius Debug [v.1.2.2.10] /wp-admin/admin.php?page=freemius | 1,419 | 2.49 | 55.05 | 132.61 |
Turbo Widgets /wp-admin/admin.php?page=turbo-widgets | 1,261 | 2.61 | 58.61 | 175.98 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 4 options
- fs_accounts
- fs_api_cache
- fs_active_plugins
- fs_debug_mode
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/turbo-widgets/freemius/templates/ajax-loader.php
- > /wp-content/plugins/turbo-widgets/public/partials/turbo-widgets-public-display.php
- > /wp-content/plugins/turbo-widgets/admin/partials/turbo-widgets-admin-display.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/turbo-widgets/admin/turbo-editor-dialog.php on line 37
- > PHP Notice
Undefined variable: tw_attrs in wp-content/plugins/turbo-widgets/admin/turbo-editor-dialog.php on line 202
- > PHP Notice
Undefined variable: tw_attrs in wp-content/plugins/turbo-widgets/admin/turbo-editor-dialog.php on line 217
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/turbo-widgets/admin/turbo-editor-dialog.php:46
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
turbo-widgets/turbo-widgets.php 92% from 13 tests
The main file in "Turbo Widgets" v. 2.0.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:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected26,425 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 4,316 | 10,810 | 18,233 |
PO File | 5 | 2,140 | 2,163 | 4,830 |
Sass | 20 | 329 | 76 | 2,091 |
JavaScript | 7 | 69 | 155 | 578 |
SVG | 1 | 1 | 1 | 442 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 40 |
CSS | 12 | 2 | 8 | 19 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,269)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 44.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,269.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 789 | |
▷ Static methods | 129 | 16.35% |
▷ Public methods | 595 | 75.41% |
▷ Protected methods | 14 | 1.77% |
▷ Private methods | 180 | 22.81% |
Functions | 82 | |
▷ Named functions | 82 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 104 | |
▷ Global constants | 85 | 81.73% |
▷ Class constants | 19 | 18.27% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
images/turbo_tiny_mce.png | 0.55KB | 0.49KB | ▼ 11.70% |
freemius/assets/img/turbo-widgets.png | 9.16KB | 5.26KB | ▼ 42.58% |
images/tw.png | 2.47KB | 1.48KB | ▼ 40.02% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |