Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/soup-show-off-upcoming-posts/includes/widget.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; SoupWidget has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.11ms] Passed 4 tests
This is a short check of server-side resources used by SOUP - Show off Upcoming Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.26 ▲0.81 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.56 ▲1.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.28 ▲2.49 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.22 ▼13.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.18 ▲3.89 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_soupwidget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by SOUP - Show off Upcoming Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.17 ▼1.20 | 2.07 ▲0.51 | 47.60 ▲5.78 |
Dashboard /wp-admin | 2,200 ▲9 | 5.81 ▲0.89 | 100.26 ▼1.24 | 38.41 ▼2.05 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 35.31 ▼5.21 | 29.76 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.23 ▼0.12 | 659.83 ▲12.33 | 68.26 ▲21.55 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▼0.09 | 93.62 ▼6.82 | 39.93 ▼3.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_soupwidget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/soup-show-off-upcoming-posts/soup-show-off-upcoming-posts-widget.php:41
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/soup-show-off-upcoming-posts/includes/widget.php:21
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (An example of the widget in use.), #2 (The widget control panel.)
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
soup-show-off-upcoming-posts/soup-show-off-upcoming-posts-widget.php 92% from 13 tests
"SOUP - Show off Upcoming Posts" version 2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("soup-show-off-upcoming-posts.php" instead of "soup-show-off-upcoming-posts-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin140 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 28 | 96 | 140 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 22.23KB | 6.60KB | ▼ 70.30% |