Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.75MB] [CPU: ▼1.56ms] Passed 4 tests
Analyzing server-side resources used by WP Bannerize Pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 46.78 ▲6.10 |
Dashboard /wp-admin | 4.06 ▲0.76 | 51.92 ▲3.61 |
Posts /wp-admin/edit.php | 4.18 ▲0.82 | 52.43 ▲1.45 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.76 | 87.34 ▼17.39 |
Media Library /wp-admin/upload.php | 3.98 ▲0.76 | 43.34 ▲9.62 |
Settings /wp-admin/edit.php?post_type=wp_bannerize&page=wpbannerize_settings | 4.17 | 38.74 |
Add New /wp-admin/post-new.php?post_type=wp_bannerize | 4.41 | 60.36 |
Analytics Report /wp-admin/edit.php?post_type=wp_bannerize&page=wpbannerize_analitycs_report | 4.26 | 45.85 |
Banners /wp-admin/edit.php?post_type=wp_bannerize | 4.16 | 44.50 |
Analytics Overview /wp-admin/edit.php?post_type=wp_bannerize&page=wpbannerize_overview | 4.31 | 44.70 |
Banner categories /wp-admin/edit-tags.php?taxonomy=wp_bannerize_tax&post_type=wp_bannerize | 3.98 | 38.59 |
Server storage [IO: ▲18.43MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 245 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_w_p_bannerize_clicks |
wp_w_p_bannerize_impressions |
wp_countries |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
wp_bannerize_pro_slug |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_wp-bannerize-widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Bannerize Pro
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,007 ▲272 | 14.05 ▼0.14 | 6.02 ▲4.22 | 43.18 ▼2.00 |
Dashboard /wp-admin | 2,268 ▲82 | 5.80 ▲0.88 | 106.46 ▼6.16 | 39.31 ▼5.21 |
Posts /wp-admin/edit.php | 2,166 ▲77 | 2.05 ▲0.05 | 35.86 ▼5.36 | 32.74 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,578 ▲50 | 23.52 ▲5.24 | 636.65 ▲8.01 | 60.87 ▲6.77 |
Media Library /wp-admin/upload.php | 1,453 ▲62 | 4.22 ▼0.01 | 98.00 ▼0.98 | 46.79 ▲1.74 |
Settings /wp-admin/edit.php?post_type=wp_bannerize&page=wpbannerize_settings | 997 | 1.71 | 25.77 | 29.95 |
Add New /wp-admin/post-new.php?post_type=wp_bannerize | 2,879 | 7.58 | 151.05 | 47.89 |
Analytics Report /wp-admin/edit.php?post_type=wp_bannerize&page=wpbannerize_analitycs_report | 1,484 | 1.94 | 26.02 | 51.81 |
Banners /wp-admin/edit.php?post_type=wp_bannerize | 1,251 | 2.58 | 38.82 | 29.28 |
Analytics Overview /wp-admin/edit.php?post_type=wp_bannerize&page=wpbannerize_overview | 1,307 | 2.59 | 47.95 | 42.95 |
Banner categories /wp-admin/edit-tags.php?taxonomy=wp_bannerize_tax&post_type=wp_bannerize | 1,330 | 2.14 | 25.87 | 27.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 3 tables
- wp_countries
- wp_w_p_bannerize_impressions
- wp_w_p_bannerize_clicks
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_wp-bannerize-widget
- db_upgraded
- widget_recent-posts
- wp_bannerize_pro_slug
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-bannerize-pro/resources/views/cpt/thumbnail-txt.php
- > /wp-content/plugins/wp-bannerize-pro/resources/views/help/banners-list.php
- > /wp-content/plugins/wp-bannerize-pro/resources/views/cpt/thumbnail-not-available.php
- > /wp-content/plugins/wp-bannerize-pro/resources/views/help/banners-edit.php
- 58× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPBannerize\\WPBones\\Database\\Migrations\\Migration' not found in wp-content/plugins/wp-bannerize-pro/database/migrations/2016_09_29_125122_create_wpbannerizeimpressions_table.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPBannerize\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wp-bannerize-pro/vendor/wpbones/wpbones/src/Html/HtmlTagLabel.php:5
- > PHP Fatal error
Trait 'WPBannerize\\WPBones\\Support\\Traits\\HasAttributes' not found in wp-content/plugins/wp-bannerize-pro/vendor/wpbones/wpbones/src/Html/HtmlTag.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WPBannerize\\MorrisPHP\\Chart' not found in wp-content/plugins/wp-bannerize-pro/vendor/wpbones/morris-php/src/Bar.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPBannerize\\MorrisPHP\\Chart' not found in wp-content/plugins/wp-bannerize-pro/vendor/wpbones/morris-php/src/Donut.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPBannerize\\WPBones\\Database\\Seeder' not found in wp-content/plugins/wp-bannerize-pro/vendor/wpbones/geolocalizer/src/database/seeds/countriesTableSeeder.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPBannerize\\WPBones\\Foundation\\Console\\Kernel' not found in wp-content/plugins/wp-bannerize-pro/plugin/Console/Kernel.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPBannerize\\WPBones\\Routing\\Controller' not found in wp-content/plugins/wp-bannerize-pro/plugin/Http/Controllers/Controller.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPBannerize\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wp-bannerize-pro/vendor/wpbones/pure-css-switch/src/Html/HtmlTagSwitchButton.php:22
- > PHP Fatal error
Uncaught Error: Class 'WPBannerize\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wp-bannerize-pro/vendor/wpbones/wpbones/src/Html/HtmlTagForm.php:5
- > PHP Fatal error
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 86% from 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
8 plugin tags: impressions, ctr, adv, random, banner...
wp-bannerize-pro/index.php 69% from 13 tests
"WP Bannerize Pro" version 1.6.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: Use only dashes and lowercase characters for the domain path ("localization")
- Domain Path: Please prefix the domain path with a forward slash character ("/localization")
- Main file name: Name the main plugin file the same as the plugin slug ("wp-bannerize-pro.php" instead of "index.php")
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
No dangerous file extensions were detected15,475 lines of code in 208 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 151 | 3,298 | 5,876 | 11,996 |
CSS | 22 | 11 | 5 | 811 |
PO File | 2 | 369 | 526 | 789 |
Markdown | 11 | 262 | 0 | 610 |
JSON | 8 | 0 | 0 | 531 |
JavaScript | 9 | 97 | 52 | 378 |
LESS | 5 | 54 | 18 | 360 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 91 | |
▷ Abstract classes | 15 | 16.48% |
▷ Concrete classes | 76 | 83.52% |
▷ Final classes | 1 | 1.32% |
Methods | 569 | |
▷ Static methods | 99 | 17.40% |
▷ Public methods | 450 | 79.09% |
▷ Protected methods | 89 | 15.64% |
▷ Private methods | 30 | 5.27% |
Functions | 50 | |
▷ Named functions | 24 | 48.00% |
▷ Anonymous functions | 26 | 52.00% |
Constants | 18 | |
▷ Global constants | 1 | 5.56% |
▷ Class constants | 17 | 94.44% |
▷ Public constants | 17 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 3.38MB with 0.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 243.97KB | 64.60KB | ▼ 73.52% |
assets/screenshot-8.png | 219.87KB | 62.52KB | ▼ 71.57% |
public/images/logo-160x160.png | 7.61KB | 7.94KB | 0.00% |
public/images/logo-80x80.png | 3.47KB | 3.55KB | 0.00% |
public/images/logo-512x512.png | 43.56KB | 47.02KB | 0.00% |