Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/page-specific-sidebars/page-specific-sidebars.php+268
Trying to get property 'ID' of non-object
Server metrics [RAM: ▼1.85MB] [CPU: ▼56.32ms] Passed 4 tests
A check of server-side resources used by Simple Page Specific Sidebars
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 6.30 ▼36.94 |
Dashboard /wp-admin | 2.15 ▼1.15 | 7.59 ▼47.80 |
Posts /wp-admin/edit.php | 2.15 ▼1.20 | 6.99 ▼42.45 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.73 | 8.25 ▼98.07 |
Media Library /wp-admin/upload.php | 2.15 ▼1.07 | 7.27 ▼27.95 |
Page Sidebar Settings /wp-admin/options-general.php?page=page-sidebar-settings | 2.15 | 6.37 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Page Specific Sidebars
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.34 ▼1.04 | 2.16 ▲0.33 | 43.11 ▲2.96 |
Dashboard /wp-admin | 2,207 ▲18 | 5.80 ▼0.09 | 97.63 ▼18.83 | 40.41 ▼0.89 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.02 | 36.53 ▼0.25 | 37.18 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.20 ▲5.70 | 662.83 ▼31.85 | 69.06 ▲2.94 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.17 ▲0.05 | 100.01 ▼7.02 | 46.63 ▼1.20 |
Page Sidebar Settings /wp-admin/options-general.php?page=page-sidebar-settings | 1,105 | 2.07 | 25.79 | 51.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/page-specific-sidebars/page-specific-sidebars.php+268
Trying to get property 'ID' of non-object
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=page-sidebar-settings
- > Notice in wp-content/plugins/page-specific-sidebars/page-specific-sidebars.php+268
Trying to get property 'ID' of non-object
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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/page-specific-sidebars/assets/desc.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-specific-sidebars/page-specific-sidebars.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/page-specific-sidebars/page-specific-sidebars.php:33
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/page-specific-sidebars/assets/page-sidebar-options-view.php:37
- > PHP Notice
Undefined variable: wp_registered_sidebars in wp-content/plugins/page-specific-sidebars/assets/page-sidebar-options-view.php on line 22
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=page-sidebar-settings
- > Network (severe)
wp-content/plugins/page-specific-sidebars/screenshot-1.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=page-sidebar-settings
- > Network (severe)
wp-content/plugins/page-specific-sidebars/screenshot-2.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=page-sidebar-settings
- > Network (severe)
wp-content/plugins/page-specific-sidebars/screenshot-3.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #3 in page-specific-sidebars/assets to your readme.txt
page-specific-sidebars/page-specific-sidebars.php Passed 13 tests
The primary PHP file in "Simple Page Specific Sidebars" version 2.14.1 is used by WordPress to initiate all plugin functionality
71 characters long description:
Add a sidebar to any specific page by creating a widget area on demand.
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
Good job! No executable or dangerous file extensions detected611 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 45 | 34 | 349 |
CSS | 1 | 5 | 1 | 243 |
JavaScript | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 3 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/email.png | 0.49KB | 0.29KB | ▼ 41.87% |
assets/feed.png | 0.71KB | 0.58KB | ▼ 18.26% |
assets/linkedin.png | 0.62KB | 0.53KB | ▼ 14.15% |
assets/facebook.png | 0.47KB | 0.29KB | ▼ 37.73% |
assets/twitter.png | 0.64KB | 0.61KB | ▼ 5.02% |