Benchmarks
Plugin footprint 82% 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: ▲1.78MB] [CPU: ▲4.77ms] 75% from 4 tests
This is a short check of server-side resources used by Theater for WordPress
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 610.60ms on /wp-admin/admin.php?page=wpt_extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.29 ▲1.82 | 51.32 ▲8.27 |
Dashboard /wp-admin | 5.05 ▲1.74 | 61.24 ▲8.22 |
Posts /wp-admin/edit.php | 5.19 ▲1.83 | 63.94 ▲13.03 |
Add New Post /wp-admin/post-new.php | 7.73 ▲1.83 | 101.23 ▼10.45 |
Media Library /wp-admin/upload.php | 4.98 ▲1.74 | 56.66 ▲17.17 |
Events /wp-admin/admin.php?page=theater-events | 4.98 | 48.62 |
Import events /wp-admin/admin.php?page=wpt_jeero | 5.37 | 841.17 |
Settings /wp-admin/admin.php?page=wpt_admin | 4.94 | 44.71 |
Extensions /wp-admin/admin.php?page=wpt_extensions | 4.95 | 610.60 |
Seasons /wp-admin/edit.php?post_type=wp_theatre_season | 5.04 | 57.93 |
Server storage [IO: ▲0.54MB] [DB: ▲0.08MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_wpt_events_widget |
db_upgraded |
widget_wpt_productions_widget |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theater_last_succesful_update_order_indexes_timestamp |
widget_recent-comments |
widget_wpt_production_widget |
wpt_version |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Theater for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲181 | 13.52 ▼0.77 | 8.24 ▲6.27 | 40.45 ▼4.18 |
Dashboard /wp-admin | 2,251 ▲74 | 5.79 ▲0.19 | 92.26 ▼4.45 | 41.13 ▼2.00 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.25 ▲0.27 | 36.92 ▼2.07 | 38.74 ▲4.36 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 23.39 ▲0.47 | 627.96 ▼64.91 | 37.08 ▼19.23 |
Media Library /wp-admin/upload.php | 1,456 ▲59 | 4.31 ▲0.11 | 106.31 ▼7.76 | 48.88 ▲3.90 |
Events /wp-admin/admin.php?page=theater-events | 1,023 | 1.74 | 27.72 | 28.79 |
Import events /wp-admin/admin.php?page=wpt_jeero | 2,247 | 1.77 | 26.93 | 42.10 |
Settings /wp-admin/admin.php?page=wpt_admin | 1,025 | 1.78 | 27.51 | 31.19 |
Extensions /wp-admin/admin.php?page=wpt_extensions | 834 | 1.78 | 28.21 | 43.18 |
Seasons /wp-admin/edit.php?post_type=wp_theatre_season | 1,129 | 2.21 | 32.66 | 29.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 12 options in the database
- widget_wpt_productions_widget
- db_upgraded
- can_compress_scripts
- widget_wpt_events_widget
- theysaidso_admin_options
- wpt_version
- widget_wpt_production_widget
- widget_recent-comments
- widget_wpt_production_events_widget
- theater_last_succesful_update_order_indexes_timestamp
- ...
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
- > GET request to /wp-admin/admin.php?page=wpt_admin
- > Notice in wp-content/plugins/theatre/functions/wpt_listing_page.php+375
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theatre/functions/wpt_calendar.php:405
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theatre/functions/wpt_widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theatre/integrations/wordpress-seo.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theatre/functions/wpt_listing_page.php:907
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theatre/integrations/jetpack-featured-content.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theatre/functions/wpt_production_widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPT_Listing' not found in wp-content/plugins/theatre/functions/wpt_productions.php:11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/theatre/functions/wpt_productions_list_table.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theatre/functions/wpt_events_widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theatre/functions/event/class-theater-event-embed.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wp_theatre_season
- > Network (severe)
https://npmcdn.com/flatpickr@4.6.13/dist/l10n/en.js - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=wpt_jeero
- > Network (severe)
https://d25hbnzl4ir3oh.cloudfront.net/calendars/thumb/Eventive.png - Failed to load resource: the server responded with a status of 403 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
theatre/theater.php 92% from 13 tests
Analyzing the main PHP file in "Theater for WordPress" version 0.18.3
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("theatre.php" instead of "theater.php")
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
There were no executable files found in this plugin9,541 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 2,554 | 6,145 | 8,195 |
CSS | 2 | 0 | 22 | 1,000 |
PO File | 2 | 145 | 362 | 332 |
SVG | 1 | 0 | 0 | 12 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 21.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 51 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 521 | |
▷ Static methods | 30 | 5.76% |
▷ Public methods | 436 | 83.69% |
▷ Protected methods | 50 | 9.60% |
▷ Private methods | 35 | 6.72% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 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