Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼2.34MB] [CPU: ▼341.40ms] Passed 4 tests
An overview of server-side resources used by ADD BANNER AF
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.02 ▼1.49 | 6.47 ▼45.31 |
Dashboard /wp-admin | 2.04 ▼1.36 | 8.05 ▼24.96 |
Posts /wp-admin/edit.php | 2.05 ▼1.59 | 6.46 ▼30.75 |
Add New Post /wp-admin/post-new.php | 2.04 ▼4.93 | 6.61 ▼1,262.09 |
Media Library /wp-admin/upload.php | 2.05 ▼1.26 | 6.43 ▼27.45 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_add_image |
Browser metrics Passed 4 tests
A check of browser resources used by ADD BANNER AF
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 16.20 ▲0.52 | 5.77 ▼0.01 | 2.34 ▼1.26 |
Dashboard /wp-admin | 2,895 ▲34 | 6.16 ▼0.02 | 118.60 ▼15.29 | 156.05 ▼0.39 |
Posts /wp-admin/edit.php | 2,688 ▲4 | 3.25 ▼0.00 | 62.50 ▼1.99 | 143.75 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,661 ▼50 | 16.40 ▼4.28 | 387.36 ▼93.24 | 153.31 ▼45.75 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.49 ▲0.02 | 138.22 ▼3.35 | 187.56 ▼10.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5409
The called constructor method for WP_Widget in Add_Image is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 1 option
- widget_add_image
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/add-banner-af/add_banner_AF.php:11
- > 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
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 your attention:
- Screenshots: Please add images for these screenshots: #1 (This is that you can see in your widget area after the activation of plugin.), #2 (This is the manage panel of widget.)
add-banner-af/add_banner_AF.php 92% from 13 tests
Analyzing the main PHP file in "ADD BANNER AF" version 1.0
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-banner-af.php" instead of "add_banner_AF.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
Good job! No executable or dangerous file extensions detected61 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 8 | 61 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.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 | 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.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 24.62KB | 6.17KB | ▼ 74.93% |