Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.67ms] Passed 4 tests
Server-side resources used by Easy Banner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 36.61 ▼1.56 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.21 ▼2.23 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.80 ▲0.41 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 93.46 ▲0.72 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.66 ▲2.50 |
Easy Banner /wp-admin/options-general.php?page=easy-banner | 3.27 | 34.19 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Easy Banner: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.15 ▼1.23 | 1.64 ▲0.09 | 41.83 ▲0.27 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.02 | 106.77 ▼3.40 | 40.94 ▲1.44 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.01 | 39.56 ▲0.39 | 34.54 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,545 ▲13 | 18.82 ▼4.46 | 601.88 ▼62.97 | 50.21 ▼8.52 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.24 ▼0.01 | 94.90 ▼19.44 | 41.15 ▼6.97 |
Easy Banner /wp-admin/options-general.php?page=easy-banner | 808 | 2.04 | 23.18 | 24.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- 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
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 take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'EasyBanner\\Banner' not found in wp-content/plugins/easy-banner/template-banner.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function EasyBanner\\add_action() in wp-content/plugins/easy-banner/includes/class-banner.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function EasyBanner\\add_action() in wp-content/plugins/easy-banner/includes/class-banner.php:82
- > PHP Fatal error
Uncaught Error: Class 'EasyBanner\\Settings' not found in wp-content/plugins/easy-banner/includes/class-banner-settings.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
1 plugin tags: banner
easy-banner/easy-banner.php Passed 13 tests
The main PHP file in "Easy Banner" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
21 characters long description:
Simple banner plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected231 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 37 | 109 | 231 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 13 | 100.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
PNG images were not found in this plugin