Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/sb-popular-posts-tabbed-widget/sb-pop-posts-widget.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; sb_tabbed_widget has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼49.68ms] Passed 4 tests
A check of server-side resources used by SB Popular Posts Tabbed Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.45 ▼38.37 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.12 ▼41.68 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.34 ▼38.69 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.66 ▼79.96 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.22 ▼27.43 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_sb_tabbed_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SB Popular Posts Tabbed Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.63 ▼0.74 | 5.74 ▲4.04 | 39.05 ▼2.95 |
Dashboard /wp-admin | 2,206 ▲15 | 5.81 ▲0.96 | 98.70 ▼9.55 | 41.36 ▲0.53 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.02 ▼0.02 | 36.05 ▲1.83 | 32.30 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.23 ▼0.02 | 720.51 ▲42.46 | 49.12 ▼3.06 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.27 ▼0.00 | 97.50 ▼0.80 | 42.81 ▼0.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/sb-popular-posts-tabbed-widget/sb-pop-posts-widget.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; sb_tabbed_widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_sb_tabbed_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-popular-posts-tabbed-widget/includes/scripts.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-popular-posts-tabbed-widget/includes/scripts.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
sb-popular-posts-tabbed-widget/sb-pop-posts-widget.php 92% from 13 tests
This is the main PHP file of "SB Popular Posts Tabbed Widget" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sb-popular-posts-tabbed-widget.php" instead of "sb-pop-posts-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected235 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 53 | 24 | 132 |
CSS | 1 | 14 | 12 | 91 |
JavaScript | 1 | 1 | 2 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and 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 |
includes/images/default-thumb.png | 6.09KB | 5.08KB | ▼ 16.63% |