Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.26ms] Passed 4 tests
Server-side resources used by Custom Sidebars by ProteusThemes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 46.12 ▲4.22 |
Dashboard /wp-admin | 3.43 ▲0.08 | 49.54 ▼17.13 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 52.13 ▲2.65 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 93.75 ▼9.12 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.51 ▼1.44 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
pt_cs_modifiable |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Sidebars by ProteusThemes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.21 | 4.45 ▲2.77 | 43.33 ▲3.45 |
Dashboard /wp-admin | 2,206 ▲18 | 5.81 ▲0.76 | 94.15 ▼11.85 | 39.88 ▼3.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.03 | 36.29 ▼5.47 | 35.08 ▼0.84 |
Add New Post /wp-admin/post-new.php | 6,253 ▲4,739 | 25.97 ▲8.41 | 978.46 ▲316.64 | 57.38 ▲1.63 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▲0.03 | 96.54 ▼8.09 | 44.80 ▼2.24 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- pt_cs_modifiable
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/custom-sidebars-by-proteusthemes/custom-sidebars-by-proteusthemes.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: wp_registered_sidebars in wp-content/plugins/custom-sidebars-by-proteusthemes/inc/views/metabox.php on line 13
- > PHP Warning
Use of undefined constant PT_CS_PATH - assumed 'PT_CS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-sidebars-by-proteusthemes/inc/class-pt-cs-main.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/custom-sidebars-by-proteusthemes/inc/views/widgets-delete.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-sidebars-by-proteusthemes/inc/class-pt-cs-widgets.php:9
- > PHP Fatal error
Uncaught Error: Class 'PT_CS_Main' not found in wp-content/plugins/custom-sidebars-by-proteusthemes/inc/views/metabox.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-sidebars-by-proteusthemes/inc/class-pt-cs-editor.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-sidebars-by-proteusthemes/inc/class-pt-cs-replacer.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/custom-sidebars-by-proteusthemes/inc/views/widgets-editor.php:18
- > PHP Warning
require_once(PT_CS_PATHinc/class-pt-cs-widgets.php): failed to open stream: No such file or directory in wp-content/plugins/custom-sidebars-by-proteusthemes/inc/class-pt-cs-main.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/custom-sidebars-by-proteusthemes/inc/views/widgets.php:23
- > PHP Notice
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)
There were no browser issues found
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
7 plugin tags: widgets, sidebars, custom, sidebar, personalize...
custom-sidebars-by-proteusthemes/custom-sidebars-by-proteusthemes.php Passed 13 tests
This is the main PHP file of "Custom Sidebars by ProteusThemes" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Allows you to create custom sidebars. Replace sidebars for specific posts and pages.
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
Success! There were no dangerous files found in this plugin886 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 238 | 611 | 883 |
JavaScript | 2 | 5 | 26 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 28.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 22 | 42.31% |
▷ Public methods | 38 | 73.08% |
▷ Protected methods | 9 | 17.31% |
▷ Private methods | 5 | 9.62% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin