Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼301.42ms] Passed 4 tests
This is a short check of server-side resources used by Banner Image
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 62.17 ▲4.78 |
Dashboard /wp-admin | 3.53 ▲0.12 | 39.97 ▼55.67 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 45.37 ▼2.02 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.03 | 100.41 ▼1,147.89 |
Media Library /wp-admin/upload.php | 3.40 ▲0.11 | 29.18 ▼0.08 |
Banner Image /wp-admin/options-general.php?page=banner-image | 3.37 | 26.18 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Banner Image
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲32 | 15.99 ▲0.19 | 6.18 ▲0.42 | 2.65 ▼0.02 |
Dashboard /wp-admin | 2,882 ▲21 | 6.15 ▼0.09 | 125.50 ▼9.44 | 182.54 ▲18.68 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▲0.00 | 63.42 ▼24.68 | 134.68 ▼15.25 |
Add New Post /wp-admin/post-new.php | 1,714 ▲24 | 20.88 ▲0.25 | 443.37 ▼3.50 | 170.67 ▼1.54 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.53 ▲0.05 | 141.70 ▲1.35 | 224.84 ▲42.05 |
Banner Image /wp-admin/options-general.php?page=banner-image | 1,079 | 2.37 | 56.33 | 124.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
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
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
Please take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'BannerImage\\Plugin_Base' not found in wp-content/plugins/banner-image/php/class-frountend.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function BannerImage\\content_url() in wp-content/plugins/banner-image/php/class-plugin-base.php:151
- > PHP Fatal error
Uncaught Error: Call to undefined function BannerImage\\content_url() in wp-content/plugins/banner-image/php/class-plugin-base.php:151
- > PHP Fatal error
Uncaught Error: Class 'BannerImage\\Plugin_Base' not found in wp-content/plugins/banner-image/php/class-admin-setting.php:15
- > PHP Fatal error
Uncaught Error: Class 'BannerImage\\Plugin_Base' not found in wp-content/plugins/banner-image/php/class-plugin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Tested up to: Version not formatted correctly
- Requires at least: Version not formatted correctly
banner-image/banner-image.php 92% from 13 tests
"Banner Image" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin415 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 87 | 299 | 355 |
CSS | 2 | 5 | 1 | 41 |
JavaScript | 2 | 1 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 96.77% |
▷ Protected methods | 1 | 3.23% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin