Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.75ms] Passed 4 tests
An overview of server-side resources used by Image Banner Ads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.12 ▲1.56 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.17 ▼10.52 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.96 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.50 ▼27.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.17 ▼1.77 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_enqtran_images_banner_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Banner Ads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.74 ▼0.02 | 1.79 ▼0.04 | 44.31 ▲4.53 |
Dashboard /wp-admin | 2,211 ▲26 | 5.82 ▼0.07 | 101.64 ▼2.05 | 42.40 ▼3.27 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.25 ▲0.26 | 34.72 ▼7.35 | 32.42 ▼6.08 |
Add New Post /wp-admin/post-new.php | 1,519 ▼9 | 23.33 ▲4.80 | 691.36 ▲37.09 | 64.28 ▲2.17 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.23 ▲0.08 | 97.12 ▼21.40 | 45.21 ▼2.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_enqtran_images_banner_widget
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× 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/image-banner-ads/plugin_image_widget.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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 require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png)
image-banner-ads/plugin_image_widget.php 92% from 13 tests
The main PHP script in "Image Banner Ads" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("image-banner-ads.php" instead of "plugin_image_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin236 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 34 | 236 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.34MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 295.76KB | 98.65KB | ▼ 66.64% |
screenshot-1.png | 7.37KB | 4.78KB | ▼ 35.17% |
screenshot-3.png | 27.00KB | 15.13KB | ▼ 43.95% |
screenshot-2.png | 16.75KB | 9.95KB | ▼ 40.59% |
screenshot-5.png | 5.63KB | 3.89KB | ▼ 30.88% |