Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.44ms] Passed 4 tests
A check of server-side resources used by Basic Banner
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.04 ▼3.00 |
Dashboard /wp-admin | 3.35 ▲0.05 | 55.39 ▲3.82 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 46.42 ▲3.42 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.22 ▼5.46 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.97 ▼0.72 |
Add New /wp-admin/post-new.php?post_type=banner | 3.33 | 46.93 |
All Banners /wp-admin/edit.php?post_type=banner | 3.31 | 34.47 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
widget_basic_banner_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Basic Banner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 14.85 ▲0.49 | 1.81 ▼0.25 | 42.52 ▼1.83 |
Dashboard /wp-admin | 2,230 ▲53 | 5.79 ▼0.13 | 102.33 ▼1.76 | 39.46 ▼5.87 |
Posts /wp-admin/edit.php | 2,113 ▲35 | 2.01 ▲0.00 | 37.17 ▲0.66 | 34.19 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 17.72 ▼5.64 | 645.69 ▼9.10 | 61.64 ▲4.45 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.21 ▲0.06 | 92.45 ▼1.83 | 41.51 ▼2.04 |
Add New /wp-admin/post-new.php?post_type=banner | 1,685 | 3.62 | 64.25 | 36.54 |
All Banners /wp-admin/edit.php?post_type=banner | 1,112 | 1.93 | 34.04 | 29.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_basic_banner_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: banner
basic-banner/basic-banner.php Passed 13 tests
"Basic Banner" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Allows you to create and display banners in WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin341 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 107 | 207 | 306 |
LESS | 1 | 6 | 0 | 34 |
CSS | 1 | 0 | 0 | 1 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected