Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.53MB] [CPU: ▼14.70ms] Passed 4 tests
Server-side resources used by Band Managment Tools
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.39 ▼5.14 |
Dashboard /wp-admin | 3.46 ▲0.16 | 48.79 ▲0.01 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.85 ▲4.73 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.59 | 36.10 ▼56.48 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.33 ▲2.81 |
Gear /wp-admin/edit.php?post_type=gear | 3.41 | 34.28 |
Songs /wp-admin/edit.php?post_type=song | 3.41 | 36.41 |
Add New /wp-admin/post-new.php?post_type=song | 3.29 | 33.28 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=album | 3.51 | 35.23 |
Band Members /wp-admin/edit.php?post_type=bandmember | 3.41 | 34.57 |
Add New /wp-admin/post-new.php?post_type=bandmember | 3.29 | 34.42 |
Gigs /wp-admin/edit.php?post_type=gig | 3.41 | 34.87 |
Add New /wp-admin/post-new.php?post_type=gear | 3.29 | 33.95 |
Add New /wp-admin/post-new.php?post_type=album | 3.29 | 35.76 |
Add New /wp-admin/post-new.php?post_type=gig | 3.29 | 34.05 |
Server storage [IO: ▲0.25MB] [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: 27 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_band_gig_widget |
bandmanager_showbandmembers |
widget_theysaidso_widget |
widget_recent-comments |
bandmanager_showgear |
bandmanager_showalbums |
bandmanager_showgigs |
db_upgraded |
widget_band_album_widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Band Managment Tools
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,053 ▲282 | 13.41 ▼1.04 | 1.69 ▼0.48 | 42.03 ▼1.56 |
Dashboard /wp-admin | 2,444 ▲273 | 5.02 ▼0.78 | 107.26 ▼16.25 | 41.99 ▼4.29 |
Posts /wp-admin/edit.php | 2,246 ▲154 | 2.52 ▲0.48 | 40.10 ▲0.81 | 35.37 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,645 ▲111 | 17.92 ▼5.01 | 709.45 ▲42.13 | 54.77 ▲3.37 |
Media Library /wp-admin/upload.php | 1,546 ▲164 | 4.26 ▼0.01 | 98.23 ▼4.29 | 43.28 ▲1.21 |
Gear /wp-admin/edit.php?post_type=gear | 1,213 | 2.25 | 33.68 | 30.08 |
Songs /wp-admin/edit.php?post_type=song | 1,272 | 2.26 | 56.16 | 28.73 |
Add New /wp-admin/post-new.php?post_type=song | 3,255 | 9.20 | 224.94 | 82.65 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=album | 1,471 | 2.01 | 33.54 | 29.13 |
Band Members /wp-admin/edit.php?post_type=bandmember | 1,232 | 2.26 | 34.05 | 29.16 |
Add New /wp-admin/post-new.php?post_type=bandmember | 2,423 | 8.02 | 160.23 | 58.60 |
Gigs /wp-admin/edit.php?post_type=gig | 1,253 | 2.24 | 34.20 | 30.81 |
Add New /wp-admin/post-new.php?post_type=gear | 2,622 | 7.93 | 168.87 | 60.30 |
Add New /wp-admin/post-new.php?post_type=album | 3,015 | 8.08 | 175.19 | 64.05 |
Add New /wp-admin/post-new.php?post_type=gig | 2,677 | 8.00 | 171.35 | 60.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 13 options
- bandmanager_showalbums
- widget_recent-posts
- bandmanager_showgigs
- widget_theysaidso_widget
- widget_band_album_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_band_gig_widget
- can_compress_scripts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 20 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gig
- > Notice in wp-content/plugins/dx2-band-theme-manager/posttypes/gig_cpt.php+47
Trying to get property 'post_type' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=album
- > Warning in wp-content/plugins/dx2-band-theme-manager/posttypes/albums_cpt.php+186
count(): Parameter must be an array or an object that implements Countable
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 fix the following
- 18× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/dx2-band-theme-manager/posttypes/bandmembers_cpt.php
- > /wp-content/plugins/dx2-band-theme-manager/objects.php
- > /wp-content/plugins/dx2-band-theme-manager/posttypes/gig_cpt.php
- > /wp-content/plugins/dx2-band-theme-manager/widgets/giglisting.php
- > /wp-content/plugins/dx2-band-theme-manager/bandmanager.php
- > /wp-content/plugins/dx2-band-theme-manager/widgets/blogposts.php
- > /wp-content/plugins/dx2-band-theme-manager/widgets.php
- > /wp-content/plugins/dx2-band-theme-manager/helpers.php
- > /wp-content/plugins/dx2-band-theme-manager/shortcodes.php
- > /wp-content/plugins/dx2-band-theme-manager/posttypes.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'CoreObject' not found in wp-content/plugins/dx2-band-theme-manager/objects/gig.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/dx2-band-theme-manager/objects/class-tgm-plugin-activation.php:2101
- > PHP Fatal error
Uncaught Error: Class 'CoreObject' not found in wp-content/plugins/dx2-band-theme-manager/objects/bandmember.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'CoreObject' not found in wp-content/plugins/dx2-band-theme-manager/objects/song.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'CoreObject' not found in wp-content/plugins/dx2-band-theme-manager/objects/gear.class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== dx2-band-theme-manager ===
)
dx2-band-theme-manager/bandmanager.php 92% from 13 tests
Analyzing the main PHP file in "Band Managment Tools" version 1.0
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("dx2-band-theme-manager.php" instead of "bandmanager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,067 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 673 | 1,741 | 3,910 |
JavaScript | 1 | 6 | 3 | 104 |
CSS | 1 | 8 | 0 | 53 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 28.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 204.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 6 | 3.87% |
▷ Public methods | 132 | 85.16% |
▷ Protected methods | 23 | 14.84% |
▷ Private methods | 0 | 0.00% |
Functions | 62 | |
▷ Named functions | 62 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin