Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼306.17ms] Passed 4 tests
An overview of 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.64 ▲0.12 | 58.37 ▲3.81 |
Dashboard /wp-admin | 3.49 ▲0.08 | 36.58 ▼3.62 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 40.63 ▲1.26 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 95.84 ▼1,224.02 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 28.11 ▲1.69 |
Add New /wp-admin/admin.php?page=add-banner-extension/includes/add-banner-admin-post.php | 3.46 | 37.36 |
All Banner List /wp-admin/admin.php?page=add-banner-extension/add-banner-extension.php | 3.38 | 26.34 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_add_banner_extension |
New WordPress options |
---|
add-banner-extension |
Browser metrics Passed 4 tests
A check of browser resources used by Add Banner Extension
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,829 ▲75 | 16.18 ▲0.51 | 6.88 ▲0.47 | 2.66 ▼0.38 |
Dashboard /wp-admin | 2,922 ▲64 | 6.16 ▲0.01 | 117.86 ▼24.65 | 154.37 ▼8.78 |
Posts /wp-admin/edit.php | 2,725 ▲34 | 3.23 ▼0.01 | 65.34 ▼2.19 | 143.25 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,712 ▲51 | 20.56 ▲4.97 | 441.40 ▲8.00 | 156.02 ▼6.16 |
Media Library /wp-admin/upload.php | 1,735 ▲40 | 5.54 ▲0.02 | 145.74 ▲1.10 | 187.30 ▼1.05 |
Add New /wp-admin/admin.php?page=add-banner-extension/includes/add-banner-admin-post.php | 1,464 | 4.65 | 110.61 | 205.41 |
All Banner List /wp-admin/admin.php?page=add-banner-extension/add-banner-extension.php | 1,023 | 2.40 | 54.30 | 101.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/add-banner-extension/add-banner-extension.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
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 |
images/no-image.png | 4.90KB | 3.94KB | ▼ 19.57% |
screenshot-1.png | 136.86KB | 49.05KB | ▼ 64.16% |
screenshot-2.png | 295.03KB | 114.29KB | ▼ 61.26% |