Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▼1.22ms] Passed 4 tests
An overview of server-side resources used by Lightweight Sidebar Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 42.69 ▼4.07 |
Dashboard /wp-admin | 3.77 ▲0.46 | 48.95 ▲3.10 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 51.17 ▲4.45 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 84.13 ▼4.40 |
Media Library /wp-admin/upload.php | 3.63 ▲0.39 | 37.39 ▲0.48 |
Sidebars /wp-admin/edit.php?post_type=bsf-sidebar | 3.73 | 39.42 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lightweight Sidebar Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.15 ▼1.07 | 1.67 ▼0.46 | 41.49 ▼4.42 |
Dashboard /wp-admin | 2,207 ▲19 | 5.84 ▲0.95 | 102.13 ▼18.56 | 38.33 ▼9.83 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.03 | 38.34 ▲2.41 | 35.01 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.36 ▲0.21 | 670.69 ▼6.82 | 56.19 ▲1.48 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.31 ▲0.12 | 94.75 ▼5.11 | 40.24 ▼6.69 |
Sidebars /wp-admin/edit.php?post_type=bsf-sidebar | 1,065 | 1.93 | 30.57 | 29.66 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sidebar-manager/classes/class-bsf-sb-sidebar.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sidebar-manager/classes/class-bsf-sb-metabox.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sidebar-manager/classes/class-bsf-sb-post-type.php:48
- > PHP Warning
Use of undefined constant BSF_SB_DIR - assumed 'BSF_SB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/sidebar-manager/classes/class-bsf-sb-loader.php on line 58
- > PHP Fatal error
require_once(): Failed opening required 'BSF_SB_DIRclasses/modules/target-rule/class-bsf-sb-target-rules-fields.php' (include_path='.:/usr/share/php') in wp-content/plugins/sidebar-manager/classes/class-bsf-sb-loader.php on line 58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sidebar-manager/classes/class-bsf-sb-white-label.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sidebar-manager/classes/modules/target-rule/class-bsf-sb-target-rules-fields.php:92
- > PHP Warning
require_once(BSF_SB_DIRclasses/modules/target-rule/class-bsf-sb-target-rules-fields.php): failed to open stream: No such file or directory in wp-content/plugins/sidebar-manager/classes/class-bsf-sb-loader.php on line 58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in sidebar-manager/assets to your readme.txt
sidebar-manager/sidebar-manager.php 92% from 13 tests
The main file in "Lightweight Sidebar Manager" v. 1.1.8 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: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin6,914 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,213 | 306 | 4,627 |
PHP | 12 | 619 | 1,053 | 2,122 |
CSS | 6 | 35 | 3 | 162 |
JSON | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 41.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 250.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 4 | 40.00% |
Methods | 107 | |
▷ Static methods | 31 | 28.97% |
▷ Public methods | 88 | 82.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 17.76% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected