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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.35ms] Passed 4 tests
This is a short check of server-side resources used by Banner Ad Creator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.12 ▼11.04 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.14 ▼3.75 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.13 ▼0.03 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 84.64 ▼10.59 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 42.26 ▲9.15 |
All Banners /wp-admin/edit.php?post_type=ts-banner-ad | 3.32 | 36.50 |
Add New /wp-admin/post-new.php?post_type=ts-banner-ad | 3.39 | 45.89 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Banner Ad Creator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲109 | 13.25 ▼1.38 | 4.89 ▲2.61 | 43.06 ▼2.15 |
Dashboard /wp-admin | 2,261 ▲82 | 5.82 ▼0.05 | 99.12 ▼18.93 | 82.03 ▲32.08 |
Posts /wp-admin/edit.php | 2,147 ▲55 | 2.02 ▲0.01 | 37.53 ▼4.35 | 33.50 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,559 ▲12 | 17.53 ▼5.55 | 738.89 ▲56.65 | 58.40 ▲7.76 |
Media Library /wp-admin/upload.php | 1,434 ▲43 | 4.23 ▼0.02 | 94.96 ▼3.53 | 68.69 ▲25.41 |
All Banners /wp-admin/edit.php?post_type=ts-banner-ad | 1,119 | 1.96 | 32.59 | 27.69 |
Add New /wp-admin/post-new.php?post_type=ts-banner-ad | 3,033 | 7.22 | 152.55 | 158.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/banner-creator/banner-ad-creator.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/banner-creator/includes/auto-ad-display.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/banner-creator/includes/view.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/banner-creator/includes/post-types.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: banner creator, banner designer, banner maker, advertisement, ads...
banner-creator/banner-ad-creator.php 85% from 13 tests
The main PHP file in "Banner Ad Creator" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("banner-creator.php" instead of "banner-ad-creator.php")
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
No dangerous file extensions were detected1,755 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 158 | 11 | 1,200 |
PO File | 1 | 112 | 117 | 253 |
JavaScript | 2 | 31 | 0 | 152 |
CSS | 1 | 29 | 6 | 133 |
SVG | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 35.75 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 38 | |
▷ Static methods | 1 | 2.63% |
▷ Public methods | 38 | 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 | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
31 PNG files occupy 0.25MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ad-sizes/hpa.png | 6.33KB | 1.06KB | ▼ 83.28% |
assets/images/ad-sizes/mrc.png | 6.23KB | 1.04KB | ▼ 83.23% |
assets/images/ad-sizes/ttc.png | 6.01KB | 1.01KB | ▼ 83.19% |
assets/images/ad-sizes/gpc.png | 5.99KB | 1.01KB | ▼ 83.13% |
assets/images/ad-sizes/fbc.png | 19.79KB | 1.01KB | ▼ 94.91% |