Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼1.24ms] Passed 4 tests
This is a short check of server-side resources used by Bannerlid
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 40.63 ▼12.43 |
Dashboard /wp-admin | 3.74 ▲0.43 | 53.42 ▲5.04 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 57.09 ▲8.94 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 98.69 ▼3.99 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 41.47 ▲6.43 |
Banners /wp-admin/admin.php?page=bannerlid | 3.62 | 39.75 |
Zones /wp-admin/admin.php?page=bannerlid-zones | 3.61 | 40.72 |
Stats /wp-admin/admin.php?page=bannerlid-stats | 3.59 | 44.64 |
Server storage [IO: ▲0.54MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 77 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_bannerlid_banner_post_relations |
wp_bannerlid_relations |
wp_bannerlid_zones |
wp_bannerlid_banners |
wp_bannerlid_stats |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
bannerlid-enable-flash |
db_upgraded |
widget_recent-comments |
bannerlid-collect-stats |
Browser metrics Passed 4 tests
Bannerlid: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,032 ▲261 | 15.86 ▲1.56 | 1.68 ▼0.53 | 39.98 ▼3.70 |
Dashboard /wp-admin | 2,416 ▲228 | 6.75 ▲0.86 | 145.06 ▲26.20 | 43.42 ▲0.30 |
Posts /wp-admin/edit.php | 2,328 ▲239 | 4.02 ▲2.02 | 63.05 ▲28.81 | 34.58 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,567 ▲53 | 23.75 ▲6.12 | 647.68 ▼68.18 | 36.61 ▼17.98 |
Media Library /wp-admin/upload.php | 1,458 ▲73 | 5.37 ▲1.17 | 101.75 ▼7.50 | 51.54 ▲5.82 |
Banners /wp-admin/admin.php?page=bannerlid | 1,152 | 3.80 | 48.40 | 25.43 |
Zones /wp-admin/admin.php?page=bannerlid-zones | 1,148 | 3.79 | 46.22 | 24.93 |
Stats /wp-admin/admin.php?page=bannerlid-stats | 1,033 | 3.90 | 49.69 | 22.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 5 tables
- wp_bannerlid_relations
- wp_bannerlid_zones
- wp_bannerlid_banner_post_relations
- wp_bannerlid_stats
- wp_bannerlid_banners
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/bannerlid/views/AdminZonesCountries.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/bannerlid/views/FormFilter.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bannerlid/views/AdminBannersEdit.php:17
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/bannerlid/views/AdminZonesUsers.php:4
- > PHP Notice
Undefined variable: action in wp-content/plugins/bannerlid/views/AdminZones.php on line 24
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/bannerlid/views/AdminBannersOverview.php:4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bannerlid/classes/ZonesTable.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/bannerlid/views/AdminStats.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/bannerlid/views/AdminZones.php:80
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bannerlid/views/AdminZonesDefault.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== bannerlid ===
)
bannerlid/bannerlid.php Passed 13 tests
The main PHP file in "Bannerlid" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
68 characters long description:
Simple banner/advert management system with stats and flash support.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin11,143 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 1,295 | 1,127 | 7,174 |
PHP | 33 | 696 | 1,511 | 2,262 |
Markdown | 11 | 366 | 0 | 980 |
HTML | 8 | 70 | 0 | 552 |
CSS | 2 | 22 | 1 | 126 |
JSON | 2 | 0 | 0 | 39 |
YAML | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 120 | |
▷ Static methods | 7 | 5.83% |
▷ Public methods | 111 | 92.50% |
▷ Protected methods | 1 | 0.83% |
▷ Private methods | 8 | 6.67% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/swf_icon.png | 0.68KB | 0.58KB | ▼ 13.56% |