Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.26ms] Passed 4 tests
An overview of server-side resources used by SB Banner Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.82 ▲4.18 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.70 ▼2.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.99 ▼8.10 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.32 ▼5.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.41 ▼0.00 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for SB Banner Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.75 ▲0.35 | 2.06 ▲0.39 | 39.43 ▼6.20 |
Dashboard /wp-admin | 2,198 ▲18 | 5.69 ▲0.01 | 87.25 ▼6.81 | 42.00 ▼2.46 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 37.48 ▲2.33 | 35.43 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 22.98 ▲5.21 | 675.48 ▼27.15 | 60.90 ▲5.04 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.20 ▼0.03 | 99.36 ▼13.87 | 45.13 ▼9.59 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sb-banner-widget/inc/class-sb-banner-widget.php:2
- > PHP Fatal error
require(): Failed opening required 'SB_BANNER_WIDGET_INC_PATH/sb-plugin-install.php' (include_path='.:/usr/share/php') in wp-content/plugins/sb-banner-widget/inc/sb-plugin-load.php on line 2
- > PHP Warning
Use of undefined constant SB_BANNER_WIDGET_INC_PATH - assumed 'SB_BANNER_WIDGET_INC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-banner-widget/inc/sb-plugin-load.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-banner-widget/inc/sb-plugin-hook.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sb-banner-widget/inc/sb-plugin-install.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/sb-banner-widget/sb-banner-widget.php:19
- > PHP Warning
require(SB_BANNER_WIDGET_INC_PATH/sb-plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/sb-banner-widget/inc/sb-plugin-load.php on line 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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (SB Banner widget on sidebar area.)
sb-banner-widget/sb-banner-widget.php Passed 13 tests
"SB Banner Widget" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
SB Banner Widget is a plugin that allows to add banner widget on your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected194 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 23 | 12 | 148 |
JavaScript | 1 | 3 | 0 | 46 |
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.35 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 9.79KB | 5.72KB | ▼ 41.61% |