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 gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.98ms] Passed 4 tests
A check of server-side resources used by SMK Sidebar Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 33.50 ▼5.44 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.58 ▼1.99 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.25 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.82 ▼12.15 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.27 ▲0.43 |
Sidebar Generator /wp-admin/themes.php?page=smk_sidebar_generator | 3.24 | 32.25 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
smk_sidebar_generator |
Browser metrics Passed 4 tests
Checking browser requirements for SMK Sidebar Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.24 ▲0.00 | 1.70 ▼0.03 | 37.80 ▼7.04 |
Dashboard /wp-admin | 2,202 ▲28 | 5.64 ▼0.07 | 85.72 ▼8.68 | 39.77 ▼3.25 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 35.68 ▼7.14 | 32.88 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,534 ▼2 | 23.21 ▲0.26 | 637.60 ▲11.73 | 61.02 ▲2.90 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.26 ▲0.05 | 96.80 ▼2.43 | 41.48 ▼1.14 |
Sidebar Generator /wp-admin/themes.php?page=smk_sidebar_generator | 992 | 1.95 | 28.60 | 30.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- smk_sidebar_generator
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Smk_Sidebar_Generator_Condition' not found in wp-content/plugins/smk-sidebar-generator/condition-cpt.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: custom, generator, widget, sidebar, unlimited
smk-sidebar-generator/smk-sidebar-generator.php 92% from 13 tests
This is the main PHP file of "SMK Sidebar Generator" version 3.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "5.3")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,382 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 170 | 475 | 846 |
JavaScript | 1 | 53 | 31 | 228 |
CSS | 1 | 9 | 45 | 218 |
PO File | 1 | 27 | 27 | 83 |
Markdown | 1 | 2 | 0 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 21.71 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 2 | 28.57% |
▷ Concrete classes | 5 | 71.43% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 91.53% |
▷ Protected methods | 5 | 8.47% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin