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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.82MB] [CPU: ▼189.62ms] Passed 4 tests
Analyzing server-side resources used by SBD Aside
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼1.02 | 5.18 ▼27.68 |
Dashboard /wp-admin | 1.83 ▼1.23 | 9.49 ▼35.24 |
Posts /wp-admin/edit.php | 1.83 ▼1.28 | 5.72 ▼40.21 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.60 | 5.38 ▼652.81 |
Media Library /wp-admin/upload.php | 1.83 ▼1.18 | 5.17 ▼30.23 |
SBD Aside /wp-admin/options-general.php?page=sbd_options_storeoptions | 1.83 | 5.26 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for SBD Aside
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.86 ▲0.28 | 7.88 ▼1.15 | 47.68 ▲0.46 |
Dashboard /wp-admin | 2,980 ▲46 | 6.13 ▲0.23 | 147.38 ▼8.16 | 101.93 ▼17.17 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.69 ▼0.01 | 65.44 ▼1.73 | 91.30 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,688 ▼184 | 18.79 ▼0.40 | 353.16 ▼23.94 | 109.11 ▼3.04 |
Media Library /wp-admin/upload.php | 1,814 ▲10 | 5.01 ▼0.00 | 144.68 ▼6.45 | 114.83 ▼2.80 |
SBD Aside /wp-admin/options-general.php?page=sbd_options_storeoptions | 1,165 | 2.22 | 55.40 | 61.43 |
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
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5663
wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the sbd_aside_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=sbd_options_storeoptions
- > User notice in wp-includes/functions.php+5663
wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the sbd_aside_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=sbd_options_storeoptions
- > User notice in wp-includes/functions.php+5663
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the sbd_aside_stylesheet handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 14 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sbd_options_storeoptions
- > Notice in wp-content/plugins/sbd-aside/sbd-aside.php+122
Trying to access array offset on value of type bool
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sbd-aside/sbd-aside.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: sidebar, aside
sbd-aside/sbd-aside.php Passed 13 tests
"SBD Aside" version 0.03's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
30 characters long description:
Plugin inserts "aside" content
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected354 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 8 | 218 |
CSS | 1 | 19 | 0 | 127 |
JavaScript | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 18 | 90.00% |
▷ Anonymous functions | 2 | 10.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
PNG images were not found in this plugin