Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▼0.84ms] Passed 4 tests
An overview of server-side resources used by Theatre WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 40.72 ▼4.23 |
Dashboard /wp-admin | 4.01 ▲0.71 | 55.75 ▲6.78 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 57.45 ▲7.47 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 91.11 ▼13.38 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 45.56 ▲10.24 |
Add new /wp-admin/post-new.php?post_type=spectacle | 4.07 | 59.42 |
Spectacles /wp-admin/edit.php?post_type=spectacle | 3.97 | 50.03 |
Add new /wp-admin/post-new.php?post_type=performance | 4.01 | 55.49 |
Performances /wp-admin/edit.php?post_type=performance | 3.97 | 44.78 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=spectacle | 3.93 | 40.64 |
Theatre WP /wp-admin/options-general.php?page=theatre-wp | 3.84 | 40.77 |
Add new /wp-admin/post-new.php?post_type=sponsor | 4.05 | 55.12 |
Sponsors /wp-admin/edit.php?post_type=sponsor | 3.97 | 46.09 |
Format /wp-admin/edit-tags.php?taxonomy=format&post_type=spectacle | 3.92 | 39.69 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 59 new files
Database: no new tables, 25 new options
New WordPress options |
---|
twp_google_maps_api |
twp_spectacles_number |
widget_twp-next-performances |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
twp_performances_name |
widget_recent-comments |
twp_performances_slug |
twp_performance_slug |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Theatre WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲158 | 13.23 ▼1.17 | 1.82 ▼0.24 | 41.36 ▲1.53 |
Dashboard /wp-admin | 2,326 ▲135 | 5.04 ▲0.16 | 102.86 ▼4.49 | 41.26 ▲0.62 |
Posts /wp-admin/edit.php | 2,184 ▲95 | 2.04 ▲0.03 | 41.19 ▼1.93 | 36.89 ▼7.34 |
Add New Post /wp-admin/post-new.php | 1,626 ▲98 | 18.51 ▲0.32 | 646.57 ▲14.07 | 53.25 ▼3.40 |
Media Library /wp-admin/upload.php | 1,483 ▲95 | 4.23 ▲0.05 | 95.00 ▼10.67 | 41.84 ▼0.68 |
Add new /wp-admin/post-new.php?post_type=spectacle | 2,933 | 9.30 | 248.15 | 89.00 |
Spectacles /wp-admin/edit.php?post_type=spectacle | 1,173 | 1.96 | 31.31 | 40.02 |
Add new /wp-admin/post-new.php?post_type=performance | 1,910 | 4.01 | 84.42 | 34.11 |
Performances /wp-admin/edit.php?post_type=performance | 1,172 | 1.95 | 32.95 | 31.46 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=spectacle | 1,399 | 2.27 | 30.67 | 31.54 |
Theatre WP /wp-admin/options-general.php?page=theatre-wp | 1,025 | 2.18 | 23.57 | 28.29 |
Add new /wp-admin/post-new.php?post_type=sponsor | 2,318 | 7.75 | 160.84 | 57.82 |
Sponsors /wp-admin/edit.php?post_type=sponsor | 1,145 | 2.01 | 30.35 | 30.94 |
Format /wp-admin/edit-tags.php?taxonomy=format&post_type=spectacle | 1,360 | 2.14 | 26.88 | 28.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 25 options
- twp_performance_name
- widget_theysaidso_widget
- twp_performances_number
- twp_spectacles_slug
- twp_clean_on_uninstall
- twp_performance_slug
- twp_performances_name
- twp_spectacle_slug
- widget_recent-posts
- widget_twp-next-performances
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 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
- 12× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/theatre-wp/classes/theatrewp/class-sponsor.php
- > /wp-content/plugins/theatre-wp/classes/theatrewp/widgets/class-spectacleswidget.php
- > /wp-content/plugins/theatre-wp/classes/theatrewp/class-setup.php
- > /wp-content/plugins/theatre-wp/classes/theatrewp/widgets/class-productionsponsorswidget.php
- > /wp-content/plugins/theatre-wp/classes/theatrewp/class-performance.php
- > /wp-content/plugins/theatre-wp/classes/theatrewp/widgets/class-upcomingperformanceswidget.php
- > /wp-content/plugins/theatre-wp/classes/theatrewp/widgets/class-showupcomingperformanceswidget.php
- > /wp-content/plugins/theatre-wp/classes/theatrewp/class-metabox.php
- > /wp-content/plugins/theatre-wp/classes/theatrewp/class-spectacle.php
- > /wp-content/plugins/theatre-wp/classes/theatrewp/class-theatrewp.php
- 4095× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: selected_year in wp-content/plugins/theatre-wp/includes/templates/check-dates-form.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/theatre-wp/includes/templates/check-dates-form.php on line 10
- > PHP Notice
Undefined variable: selected_year in wp-content/plugins/theatre-wp/includes/templates/check-dates-form.php on line 11
- > PHP Notice
Undefined variable: calendar_data in wp-content/plugins/theatre-wp/includes/templates/check-dates-form.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/theatre-wp/includes/templates/check-dates-form.php on line 10
- > PHP Notice
Undefined variable: selected_year in wp-content/plugins/theatre-wp/includes/templates/check-dates-form.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/theatre-wp/includes/templates/check-dates-form.php on line 10
- > PHP Notice
Undefined variable: selected_year in wp-content/plugins/theatre-wp/includes/templates/check-dates-form.php on line 11
- > PHP Notice
Undefined variable: selected_year in wp-content/plugins/theatre-wp/includes/templates/check-dates-form.php on line 11
- > PHP Notice
Undefined variable: selected_year in wp-content/plugins/theatre-wp/includes/templates/check-dates-form.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: dance, troupe, performing arts, theatre
theatre-wp/theatre-wp.php Passed 13 tests
The principal PHP file in "Theatre WP" v. 1.0 is loaded by WordPress automatically on each request
89 characters long description:
CMS for Theatre and Performing Arts Companies. Managing Shows and Performances made easy.
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
Good job! No executable or dangerous file extensions detected4,203 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 774 | 854 | 2,649 |
PO File | 4 | 493 | 745 | 1,122 |
CSS | 3 | 20 | 15 | 387 |
JavaScript | 2 | 7 | 26 | 31 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 29.80 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 18 | 15.79% |
▷ Public methods | 103 | 90.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 9.65% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |