Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.01ms] Passed 4 tests
Analyzing server-side resources used by Add Banner Extension
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 40.35 ▲0.63 |
Dashboard /wp-admin | 3.41 ▲0.07 | 49.86 ▼3.88 |
Posts /wp-admin/edit.php | 3.53 ▲0.13 | 49.30 ▼1.12 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.07 | 86.98 ▼11.65 |
Media Library /wp-admin/upload.php | 3.34 ▲0.07 | 41.38 ▲5.22 |
Add New /wp-admin/admin.php?page=add-banner-extension/includes/add-banner-admin-post.php | 3.43 | 40.27 |
All Banner List /wp-admin/admin.php?page=add-banner-extension/add-banner-extension.php | 3.35 | 31.97 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_add_banner_extension |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
add-banner-extension |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add Banner Extension
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.26 ▼0.09 | 1.71 ▼0.03 | 40.71 ▼1.35 |
Dashboard /wp-admin | 2,222 ▲45 | 5.66 ▼0.00 | 87.07 ▼6.09 | 39.24 ▼2.55 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.96 ▲0.01 | 34.60 ▼8.09 | 34.11 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.22 ▲0.01 | 668.27 ▲31.39 | 49.09 ▲4.94 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.19 ▲0.00 | 111.31 ▲3.89 | 47.01 ▲2.11 |
Add New /wp-admin/admin.php?page=add-banner-extension/includes/add-banner-admin-post.php | 1,131 | 3.40 | 46.51 | 62.86 |
All Banner List /wp-admin/admin.php?page=add-banner-extension/add-banner-extension.php | 808 | 2.01 | 23.14 | 23.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
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 take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/add-banner-extension/add-banner-extension.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/add-banner-extension/includes/add-banner-admin-404.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/add-banner-extension/includes/add-banner-admin-upload.php:2
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (The registered banner image list is displayed.), #2 (Banner image registration and edit screen. Items : Image URL (required), Image Alt Text (required), Link URL, Open New Tab, Class Name, Id Name, Display Category (required).)
add-banner-extension/add-banner-extension.php Passed 13 tests
The main PHP script in "Add Banner Extension" version 2.0.9 is automatically included on every request by WordPress
110 characters long description:
Register an image from the administration screen, and a different banner image is displayed for each category.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin840 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 169 | 301 | 700 |
PO File | 1 | 41 | 57 | 101 |
CSS | 1 | 14 | 6 | 39 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 12.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 73.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 26.47% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
3 PNG files occupy 0.43MB with 0.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 136.86KB | 49.05KB | ▼ 64.16% |
images/no-image.png | 4.90KB | 3.94KB | ▼ 19.57% |
screenshot-2.png | 295.03KB | 114.29KB | ▼ 61.26% |