Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.71ms] Passed 4 tests
Analyzing server-side resources used by mind-body
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 37.22 ▼1.49 |
Dashboard /wp-admin | 3.40 ▲0.06 | 45.48 ▼16.90 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 51.57 ▲7.26 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 90.02 ▼9.98 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 33.21 ▼2.48 |
Server storage [IO: ▲9.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,087 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by mind-body
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 13.74 ▼0.53 | 1.64 ▼0.29 | 38.73 ▼5.58 |
Dashboard /wp-admin | 2,225 ▲40 | 4.86 ▼1.00 | 104.84 ▼16.00 | 41.62 ▼3.23 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 1.97 ▼0.08 | 39.31 ▲2.16 | 35.43 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 22.96 ▼0.08 | 651.73 ▼3.85 | 49.53 ▼3.87 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.21 ▼0.01 | 95.32 ▼13.49 | 40.02 ▼4.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/mind-body-api-integration/views/cal.php
- > /wp-content/plugins/mind-body-api-integration/workflows/bookClientIntoFinderClass.php
- > /wp-content/plugins/mind-body-api-integration/views/calwidget.php
- > /wp-content/plugins/mind-body-api-integration/views/adminview/staff.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mind-body-api-integration/views/adminview/options.php:1
- > PHP Warning
require_once(mbapi.php): failed to open stream: No such file or directory in wp-content/plugins/mind-body-api-integration/includes/appointmentService.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'soapclient' not found in wp-content/plugins/mind-body-api-integration/includes/classService.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mind-body-api-integration/views/public.php:14
- > PHP Fatal error
require_once(): Failed opening required 'mbapi.php' (include_path='.:/usr/share/php') in wp-content/plugins/mind-body-api-integration/includes/clientService.php on line 2
- > PHP Warning
require_once(mbapi.php): failed to open stream: No such file or directory in wp-content/plugins/mind-body-api-integration/includes/clientService.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'mbapi.php' (include_path='.:/usr/share/php') in wp-content/plugins/mind-body-api-integration/includes/clientService.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'mbapi.php' (include_path='.:/usr/share/php') in wp-content/plugins/mind-body-api-integration/includes/appointmentService.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'mbapi.php' (include_path='.:/usr/share/php') in wp-content/plugins/mind-body-api-integration/includes/appointmentService.php on line 2
- > PHP Warning
require_once(mbapi.php): failed to open stream: No such file or directory in wp-content/plugins/mind-body-api-integration/includes/clientService.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
mind-body-api-integration/mind-body.php 85% from 13 tests
The primary PHP file in "mind-body" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mind-body-api-integration.php" instead of "mind-body.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin132,587 lines of code in 610 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 449 | 14,731 | 22,076 | 88,086 |
CSS | 111 | 1,860 | 2,460 | 39,768 |
PHP | 27 | 635 | 1,152 | 3,402 |
Markdown | 6 | 334 | 0 | 863 |
JSON | 17 | 3 | 0 | 468 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 25.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 3 | 2.63% |
▷ Public methods | 99 | 86.84% |
▷ Protected methods | 5 | 4.39% |
▷ Private methods | 10 | 8.77% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 1 | 5.88% |
▷ Class constants | 16 | 94.12% |
▷ Public constants | 16 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
369 PNG files occupy 0.96MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/bower_components/jquery-ui/themes/smoothness/images/ui-icons_2e83ff_256x240.png | 4.49KB | 4.20KB | ▼ 6.46% |
app/bower_components/jquery-ui/themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
app/bower_components/jquery-ui/themes/south-street/images/ui-icons_cd0a0a_256x240.png | 4.49KB | 4.20KB | ▼ 6.46% |
app/bower_components/jquery-ui/themes/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png | 0.29KB | 0.17KB | ▼ 42.00% |
app/bower_components/jquery-ui/themes/overcast/images/ui-bg_flat_55_c0402a_40x100.png | 0.27KB | 0.11KB | ▼ 57.66% |