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.55MB] [CPU: ▲0.52ms] Passed 4 tests
This is a short check of server-side resources used by Custom Sidebars - Dynamic Sidebar Widget Area Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.85 | 47.11 ▲5.28 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.37 ▼8.43 |
Posts /wp-admin/edit.php | 4.71 ▲1.36 | 63.12 ▲8.24 |
Add New Post /wp-admin/post-new.php | 7.20 ▲1.32 | 101.47 ▲6.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.19 ▼1.38 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 114 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cs_modifiable |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Sidebars - Dynamic Sidebar Widget Area Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲48 | 13.19 ▼1.35 | 1.60 ▼0.75 | 40.64 ▼3.85 |
Dashboard /wp-admin | 2,219 ▲31 | 5.84 ▲0.98 | 109.03 ▲1.54 | 50.08 ▲8.54 |
Posts /wp-admin/edit.php | 2,257 ▲165 | 2.54 ▲0.57 | 45.90 ▲4.31 | 43.04 ▲6.77 |
Add New Post /wp-admin/post-new.php | 6,269 ▲4,750 | 21.97 ▼1.19 | 902.21 ▲210.36 | 39.77 ▼13.26 |
Media Library /wp-admin/upload.php | 1,398 ▲19 | 4.22 ▼0.02 | 101.25 ▲1.20 | 47.86 ▲1.73 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- cs_modifiable
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/custom-sidebars/inc/external/wpmu-lib/view/list.php
- 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-sidebars/inc/integrations/class-custom-sidebars-integration-wpml.php:3
- > PHP Fatal error
Uncaught Error: Class 'CustomSidebarsExport' not found in wp-content/plugins/custom-sidebars/views/import.php:8
- > PHP Notice
Undefined variable: items in wp-content/plugins/custom-sidebars/inc/external/wpmu-lib/view/list.php on line 48
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/custom-sidebars/inc/external/wpmu-lib/view/pointer.php:23
- > PHP Fatal error
Uncaught Error: Class 'TheLib' not found in wp-content/plugins/custom-sidebars/inc/external/wpmu-lib/inc/class-thelib-array.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/custom-sidebars/views/widgets-editor.php:12
- > PHP Warning
require_once(CSB_INC_DIRclass-custom-sidebars-widgets.php): failed to open stream: No such file or directory in wp-content/plugins/custom-sidebars/inc/class-custom-sidebars.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'CustomSidebars' not found in wp-content/plugins/custom-sidebars/views/quick-edit.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/custom-sidebars/customsidebars.php:47
- > PHP Fatal error
Uncaught Error: Class 'TheLib' not found in wp-content/plugins/custom-sidebars/inc/external/wpmu-lib/inc/class-thelib-updates.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: custom widget area, footer, manage sidebars, custom sidebar, flexible layout...
custom-sidebars/customsidebars.php 92% from 13 tests
The main file in "Custom Sidebars - Dynamic Sidebar Widget Area Manager" v. 3.36 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("custom-sidebars.php" instead of "customsidebars.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected29,110 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 25 | 1,755 | 387 | 10,870 |
PHP | 37 | 1,301 | 3,833 | 9,222 |
JavaScript | 16 | 2,125 | 2,301 | 8,323 |
SVG | 1 | 0 | 0 | 640 |
Markdown | 1 | 16 | 0 | 55 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 142)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 62.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 245.00 |
Average method complexity | 5.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 142.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 2 | 8.00% |
▷ Concrete classes | 23 | 92.00% |
▷ Final classes | 0 | 0.00% |
Methods | 316 | |
▷ Static methods | 57 | 18.04% |
▷ Public methods | 207 | 65.51% |
▷ Protected methods | 42 | 13.29% |
▷ Private methods | 67 | 21.20% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 50 | |
▷ Global constants | 15 | 30.00% |
▷ Class constants | 35 | 70.00% |
▷ Public constants | 35 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 0.18MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/external/wpmu-lib/img/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
inc/external/wpmu-lib/img/jquery-ui/ui-icons_A44_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/img/heart.png | 1.38KB | 1.22KB | ▼ 11.95% |
assets/img/devman.png | 13.12KB | 5.79KB | ▼ 55.84% |
assets/img/wp-force-ssl.png | 23.38KB | 12.25KB | ▼ 47.59% |