Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▲3.53ms] Passed 4 tests
An overview of server-side resources used by Ensemble
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.42 | 45.84 ▲6.93 |
Dashboard /wp-admin | 4.28 ▲0.93 | 59.47 ▲8.98 |
Posts /wp-admin/edit.php | 4.33 ▲0.93 | 52.91 ▼0.38 |
Add New Post /wp-admin/post-new.php | 6.89 ▲0.96 | 95.95 ▼0.56 |
Media Library /wp-admin/upload.php | 4.13 ▲0.86 | 48.47 ▲8.11 |
Units /wp-admin/edit-tags.php?taxonomy=ensemble_unit | 4.10 | 39.08 |
Venues /wp-admin/admin.php?page=ensemble-admin-venues | 4.43 | 44.29 |
Instructors /wp-admin/admin.php?page=ensemble-admin-people-instructors | 4.17 | 43.85 |
Competing Units /wp-admin/admin.php?page=ensemble-unit-admin | 4.00 | 34.48 |
Directors /wp-admin/admin.php?page=ensemble-admin-people-directors | 4.17 | 39.65 |
Seasons /wp-admin/edit-tags.php?taxonomy=ensemble_season | 4.10 | 38.73 |
Contests /wp-admin/admin.php?page=ensemble-admin-contests | 4.46 | 44.53 |
Classifications /wp-admin/edit-tags.php?taxonomy=ensemble_class | 4.10 | 41.36 |
Integrations /wp-admin/admin.php?page=ensemble-admin-integrations | 4.10 | 37.72 |
Ensemble /wp-admin/admin.php?page=ensemble-admin | 4.30 | 40.34 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 114 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_ensemble_venues |
wp_ensemble_contests |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
ensemble_installed |
wp_ensemble_contests_db_version |
widget_theysaidso_widget |
can_compress_scripts |
wp_ensemble_venues_db_version |
db_upgraded |
Browser metrics Passed 4 tests
Ensemble: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲77 | 14.33 ▼0.02 | 1.78 ▼0.12 | 44.09 ▼3.15 |
Dashboard /wp-admin | 2,269 ▲92 | 5.62 ▼0.04 | 91.88 ▼5.78 | 44.13 ▲0.00 |
Posts /wp-admin/edit.php | 2,174 ▲77 | 1.99 ▼0.03 | 35.73 ▼1.46 | 36.94 ▲3.24 |
Add New Post /wp-admin/post-new.php | 1,585 ▲57 | 23.05 ▼0.11 | 670.82 ▼21.97 | 53.92 ▼7.84 |
Media Library /wp-admin/upload.php | 1,474 ▲77 | 4.12 ▼0.09 | 104.42 ▼2.20 | 47.77 ▼0.96 |
Units /wp-admin/edit-tags.php?taxonomy=ensemble_unit | 1,485 | 2.63 | 57.52 | 41.58 |
Venues /wp-admin/admin.php?page=ensemble-admin-venues | 1,092 | 2.69 | 55.19 | 40.15 |
Instructors /wp-admin/admin.php?page=ensemble-admin-people-instructors | 1,013 | 2.21 | 31.31 | 25.80 |
Competing Units /wp-admin/admin.php?page=ensemble-unit-admin | 1,485 | 2.52 | 43.84 | 32.51 |
Directors /wp-admin/admin.php?page=ensemble-admin-people-directors | 1,013 | 2.22 | 30.97 | 24.65 |
Seasons /wp-admin/edit-tags.php?taxonomy=ensemble_season | 1,300 | 2.39 | 34.94 | 32.14 |
Contests /wp-admin/admin.php?page=ensemble-admin-contests | 1,689 | 6.47 | 127.90 | 55.50 |
Classifications /wp-admin/edit-tags.php?taxonomy=ensemble_class | 1,295 | 2.47 | 35.40 | 30.60 |
Integrations /wp-admin/admin.php?page=ensemble-admin-integrations | 868 | 2.26 | 30.04 | 28.68 |
Ensemble /wp-admin/admin.php?page=ensemble-admin | 1,062 | 2.21 | 32.12 | 35.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- wp_ensemble_venues_db_version
- widget_theysaidso_widget
- wp_ensemble_contests_db_version
- theysaidso_admin_options
- db_upgraded
- ensemble_installed
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=ensemble_class
- > User deprecated in wp-includes/functions.php+5828
Hook add_tag_form_pre is deprecated since version 3.0.0! Use {$taxonomy}_pre_add_form instead.
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
Almost there! Just fix the following items
- 79× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function Ensemble\\Components\\People\\Directors\\Admin\\absint() in wp-content/plugins/ensemble/includes/components/people/directors/admin/views/edit.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function Ensemble\\Components\\Venues\\Admin\\esc_html_e() in wp-content/plugins/ensemble/includes/components/venues/admin/views/add.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/ensemble/includes/components/people/instructors/admin/class-list-table.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Ensemble\\Core\\Interfaces\\Loader' not found in wp-content/plugins/ensemble/includes/components/people/directors/admin/class-actions.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function Ensemble\\Core\\do_action() in wp-content/plugins/ensemble/includes/core/admin/views/overview.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Ensemble\\Core\\Interfaces\\Loader' not found in wp-content/plugins/ensemble/includes/core/class-requests.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Ensemble\\Core\\Interfaces\\Loader' not found in wp-content/plugins/ensemble/includes/core/admin/class-settings.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_roles() in wp-content/plugins/ensemble/uninstall.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Ensemble\\Core\\Interfaces\\Loader' not found in wp-content/plugins/ensemble/includes/core/class-users.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Ensemble\\Core\\Interfaces\\Loader' not found in wp-content/plugins/ensemble/includes/components/people/directors/class-setup.php:22
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Screenshots: Please a description for screenshot #7 in ensemble/assets to your readme.txt
ensemble/ensemble.php Passed 13 tests
Analyzing the main PHP file in "Ensemble" version 1.1.1
105 characters long description:
Easily manage the data for a color guard circuit (or similar sport/activity organization) with WordPress.
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
Everything looks great! No dangerous files found in this plugin7,031 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,954 | 5,602 | 6,866 |
CSS | 5 | 31 | 23 | 135 |
JavaScript | 4 | 6 | 26 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 7 | |
Traits | 5 | |
Classes | 66 | |
▷ Abstract classes | 5 | 7.58% |
▷ Concrete classes | 61 | 92.42% |
▷ Final classes | 3 | 4.92% |
Methods | 394 | |
▷ Static methods | 22 | 5.58% |
▷ Public methods | 344 | 87.31% |
▷ Protected methods | 16 | 4.06% |
▷ Private methods | 34 | 8.63% |
Functions | 25 | |
▷ Named functions | 22 | 88.00% |
▷ Anonymous functions | 3 | 12.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
There are no PNG files in this plugin