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: ▲1.14MB] [CPU: ▲0.54ms] Passed 4 tests
Server-side resources used by MZ Mindbody API
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.53 ▲1.07 | 47.86 ▲3.13 |
Dashboard /wp-admin | 4.51 ▲1.21 | 58.00 ▲4.98 |
Posts /wp-admin/edit.php | 4.56 ▲1.21 | 60.83 ▲10.62 |
Add New Post /wp-admin/post-new.php | 7.03 ▲1.14 | 90.93 ▼16.15 |
Media Library /wp-admin/upload.php | 4.35 ▲1.12 | 45.00 ▲10.19 |
MZ Mindbody /wp-admin/options-general.php?page=mz_mindbody_settings | 4.35 | 41.83 |
Server storage [IO: ▲3.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 241 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
mz_mbo_events |
widget_recent-posts |
mz_mbo_shortcodes |
mz_mbo_api_calls |
mz_mbo_basic |
widget_theysaidso_widget |
mz_mbo_advanced |
... |
Browser metrics Passed 4 tests
MZ Mindbody API: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲189 | 15.03 ▲0.67 | 1.76 ▼0.19 | 44.29 ▼1.74 |
Dashboard /wp-admin | 2,356 ▲185 | 6.37 ▲0.70 | 114.94 ▲15.98 | 39.47 ▼4.19 |
Posts /wp-admin/edit.php | 2,285 ▲185 | 3.53 ▲1.56 | 55.68 ▲19.69 | 32.04 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,382 ▼144 | 17.22 ▼6.27 | 497.47 ▼178.94 | 27.87 ▼34.24 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.28 ▲0.03 | 84.99 ▼32.41 | 44.08 ▼4.03 |
MZ Mindbody /wp-admin/options-general.php?page=mz_mindbody_settings | 1,533 | 3.42 | 49.91 | 40.89 |
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
- This plugin did not uninstall successfully, leaving 11 options in the database
- theysaidso_admin_options
- db_upgraded
- mz_mbo_shortcodes
- mz_mbo_events
- widget_recent-comments
- mz_mbo_basic
- widget_theysaidso_widget
- mz_mbo_api_calls
- widget_recent-posts
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mz-mindbody-api/src/Frontend/views/event_listing_full.php
- > /wp-content/plugins/mz-mindbody-api/src/Frontend/views/staff_list_horizontal.php
- > /wp-content/plugins/mz-mindbody-api/src/Frontend/views/client_schedule.php
- > /wp-content/plugins/mz-mindbody-api/src/Admin/views/html-mz-mindbody-admin-display.php
- > /wp-content/plugins/mz-mindbody-api/src/Frontend/views/staff_list_gallery.php
- > /wp-content/plugins/mz-mindbody-api/src/Frontend/views/schedule_container.php
- > /wp-content/plugins/mz-mindbody-api/mz-mindbody.php
- 188× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mz-mindbody-api/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'MZoo\\MzMindbody\\Common\\Interfaces\\ShortcodeScriptLoader' not found in wp-content/plugins/mz-mindbody-api/src/Schedule/Display.php:22
- > PHP Notice
Undefined variable: data in wp-content/plugins/mz-mindbody-api/src/Frontend/views/grid_schedule.php on line 34
- > PHP Fatal error
Uncaught Error: Class 'MZoo\\MzMindbody\\Common\\Interfaces\\Retrieve' not found in wp-content/plugins/mz-mindbody-api/src/Client/RetrieveClient.php:16
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mz-mindbody-api/vendor/composer/installers/src/Composer/Installers/DframeInstaller.php:5
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/mz-mindbody-api/src/Frontend/views/event_listing_full.php on line 71
- > PHP Notice
Undefined variable: data in wp-content/plugins/mz-mindbody-api/src/Frontend/views/schedule_container.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mz-mindbody-api/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php:4
- > PHP Notice
Trying to get property 'events' of non-object in wp-content/plugins/mz-mindbody-api/src/Frontend/views/event_listing_full.php on line 34
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/mz-mindbody-api/vendor/composer/installers/src/Composer/Installers/Installer.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: A description for screenshot #6 is missing in mz-mindbody-api/assets to your readme.txt
mz-mindbody-api/mz-mindbody.php 92% from 13 tests
The principal PHP file in "MZ Mindbody API" v. 2.9.9 is loaded by WordPress automatically on each request
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 ("mz-mindbody-api.php" instead of "mz-mindbody.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
Success! There were no dangerous files found in this plugin39,883 lines of code in 206 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 7,269 | 7,184 | 26,793 |
PHP | 179 | 2,425 | 6,265 | 8,984 |
CSS | 2 | 231 | 62 | 1,829 |
PO File | 3 | 507 | 691 | 1,290 |
JSON | 3 | 0 | 0 | 377 |
Bourne Shell | 3 | 72 | 78 | 288 |
Markdown | 2 | 51 | 0 | 161 |
YAML | 3 | 30 | 3 | 118 |
XML | 2 | 11 | 15 | 43 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 152 | |
▷ Abstract classes | 5 | 3.29% |
▷ Concrete classes | 147 | 96.71% |
▷ Final classes | 0 | 0.00% |
Methods | 410 | |
▷ Static methods | 22 | 5.37% |
▷ Public methods | 305 | 74.39% |
▷ Protected methods | 54 | 13.17% |
▷ Private methods | 51 | 12.44% |
Functions | 27 | |
▷ Named functions | 10 | 37.04% |
▷ Anonymous functions | 17 | 62.96% |
Constants | 12 | |
▷ Global constants | 8 | 66.67% |
▷ Class constants | 4 | 33.33% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/controls.png | 1.23KB | 1.28KB | 0.00% |
dist/images/border.png | 0.07KB | 0.10KB | 0.00% |
dist/images/overlay.png | 0.11KB | 0.15KB | 0.00% |