Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.44MB] [CPU: ▼44.99ms] Passed 4 tests
A check of server-side resources used by MB Spirit for MINDBODY
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.55 ▼0.91 | 11.87 ▼30.00 |
Dashboard /wp-admin | 2.57 ▼0.73 | 14.17 ▼38.66 |
Posts /wp-admin/edit.php | 2.57 ▼0.78 | 14.15 ▼29.88 |
Add New Post /wp-admin/post-new.php | 2.57 ▼3.31 | 13.59 ▼81.40 |
Media Library /wp-admin/upload.php | 2.57 ▼0.66 | 13.56 ▼17.38 |
Register /wp-admin/admin.php?page=mb_spirit_register | 2.57 | 14.56 |
Manage Settings /wp-admin/admin.php?page=mb_spirit | 2.57 | 20.08 |
Overview /wp-admin/admin.php?page=mb_spirit_mgmt | 2.57 | 12.37 |
Server storage [IO: ▲0.13MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
mb_spirit_options |
theysaidso_admin_options |
db_upgraded |
widget_mb_spirit_widget |
Browser metrics Passed 4 tests
MB Spirit for MINDBODY: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 14.35 ▼0.08 | 1.72 ▲0.04 | 42.25 ▼1.87 |
Dashboard /wp-admin | 2,353 ▲173 | 5.61 ▼0.04 | 88.55 ▼9.76 | 42.06 ▼0.30 |
Posts /wp-admin/edit.php | 2,219 ▲116 | 2.05 ▲0.01 | 35.32 ▲0.12 | 39.41 ▲7.57 |
Add New Post /wp-admin/post-new.php | 6,407 ▲4,872 | 27.65 ▲9.50 | 931.58 ▲280.23 | 41.77 ▼23.29 |
Media Library /wp-admin/upload.php | 1,517 ▲114 | 4.47 ▲0.31 | 101.73 ▲8.53 | 47.26 ▲7.00 |
Register /wp-admin/admin.php?page=mb_spirit_register | 1,405 | 12.70 | 223.95 | 64.90 |
Manage Settings /wp-admin/admin.php?page=mb_spirit | 973 | 1.97 | 26.18 | 31.02 |
Overview /wp-admin/admin.php?page=mb_spirit_mgmt | 1,303 | 9.03 | 214.67 | 48.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in mb_spirit_widget is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_mb_spirit_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mb_spirit_mgmt
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in mb_spirit_widget is deprecated since version 4.3.0! Use __construct() instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mb_spirit_mgmt
- > Notice in wp-content/plugins/mb-spirit-for-mindbody/mb-spirit.php+1270
curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used instead
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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mb-spirit-for-mindbody/mb-spirit.php
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: calendar, events, staff, courses, api...
mb-spirit-for-mindbody/mb-spirit.php 92% from 13 tests
This is the main PHP file of "MB Spirit for MINDBODY" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mb-spirit-for-mindbody.php" instead of "mb-spirit.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,438 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 70 | 324 | 1,018 |
CSS | 1 | 11 | 0 | 168 |
JavaScript | 2 | 9 | 8 | 144 |
SVG | 2 | 0 | 2 | 91 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 118.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 218.00 |
Average method complexity | 5.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 93.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.12% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/img/powered-by-mindbody.png | 8.59KB | 5.57KB | ▼ 35.16% |
style/img/mb-spirit-logo.png | 23.74KB | 6.90KB | ▼ 70.93% |
style/img/mb-spirit-icon-64.png | 3.57KB | 2.27KB | ▼ 36.46% |
style/img/mb-spirit-icon-32.png | 1.59KB | 1.45KB | ▼ 8.71% |