Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.44ms] Passed 4 tests
An overview of server-side resources used by Better Bandsintown
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.26 ▲1.22 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.19 ▲1.49 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.50 ▲0.89 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.89 ▼5.36 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.80 ▲1.53 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_bbit-widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Better Bandsintown
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 14.48 ▼0.30 | 1.97 ▲0.43 | 37.60 ▼11.10 |
Dashboard /wp-admin | 2,209 ▲24 | 4.81 ▼1.05 | 98.74 ▼4.82 | 38.89 ▼3.99 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.03 | 39.66 ▲1.08 | 34.96 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,535 ▼7 | 23.09 ▲4.96 | 636.61 ▲36.89 | 53.61 ▲1.32 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.27 ▲0.05 | 94.67 ▼11.49 | 42.10 ▼2.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_bbit-widget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/better-bandsintown/bbit-shortcode-view.php
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-bandsintown/bbit-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-bandsintown/bbit-widget.php:3
- > PHP Notice
Undefined variable: bandname in wp-content/plugins/better-bandsintown/bbit-widget-view.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/better-bandsintown/bbit-widget-view.php:4
- > PHP Notice
Undefined variable: a in wp-content/plugins/better-bandsintown/bbit-shortcode-view.php on line 2
- > PHP Notice
Undefined variable: a in wp-content/plugins/better-bandsintown/bbit-shortcode-view.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/better-bandsintown/bbit-shortcode-view.php on line 5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/better-bandsintown/bbit-widget-form.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/better-bandsintown/bbit-shortcode-view.php on line 4
- > PHP Notice
Undefined variable: a in wp-content/plugins/better-bandsintown/bbit-shortcode-view.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: in, bandsintown, town, bands, tour...
better-bandsintown/index.php 85% from 13 tests
The main PHP file in "Better Bandsintown" ver. 0.4.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("better-bandsintown.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin403 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 60 | 21 | 268 |
PHP | 6 | 26 | 43 | 135 |
PHP code Passed 2 tests
This is a short overview 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.09 |
Average class complexity | 2.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bandsintown.png | 54.33KB | 16.82KB | ▼ 69.04% |
images/bandsintown-logo.png | 49.31KB | 33.36KB | ▼ 32.35% |