Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.85ms] Passed 4 tests
A check of server-side resources used by Appointment scheduling and Booking Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 42.05 ▼1.72 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.72 ▼6.07 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.22 ▼4.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.99 ▼19.10 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.53 ▲0.79 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 111 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Appointment scheduling and Booking Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.44 ▲0.19 | 1.57 ▼0.38 | 41.53 ▼2.73 |
Dashboard /wp-admin | 2,189 ▲15 | 5.50 ▼0.08 | 86.93 ▼12.66 | 43.22 ▼1.73 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.01 | 34.26 ▼1.03 | 38.35 ▼2.23 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.22 ▲5.18 | 690.22 ▲43.75 | 55.62 ▼16.19 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.13 ▼0.06 | 107.48 ▲11.08 | 47.32 ▲2.47 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPMailer' not found in wp-content/plugins/appointment-scheduling-and-booking-manager/includes/PHPMailer/class.phpmaileroauth.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appointment-scheduling-and-booking-manager/includes/ajax_handler.php:8
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/appointment-scheduling-and-booking-manager/includes/PHPMailer/get_oauth_token.php on line 6
- > PHP Warning
require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/appointment-scheduling-and-booking-manager/includes/PHPMailer/get_oauth_token.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
appointment-scheduling-and-booking-manager/eav_networks.php 85% from 13 tests
The principal PHP file in "Appointment scheduling and Booking Manager" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("appointment-scheduling-and-booking-manager.php" instead of "eav_networks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin8,261 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 70 | 1,033 | 3,196 | 6,599 |
CSS | 5 | 114 | 11 | 1,107 |
JavaScript | 5 | 115 | 54 | 511 |
JSON | 1 | 0 | 0 | 44 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 50.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 403.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 16 | 7.17% |
▷ Public methods | 182 | 81.61% |
▷ Protected methods | 33 | 14.80% |
▷ Private methods | 8 | 3.59% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 7 | 30.43% |
▷ Class constants | 16 | 69.57% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 35.47KB | 14.42KB | ▼ 59.35% |
assets/screenshot-3.png | 13.39KB | 5.23KB | ▼ 60.96% |
includes/images/knobs/warning.png | 4.46KB | 1.51KB | ▼ 66.10% |
assets/screenshot-6.png | 91.16KB | 36.54KB | ▼ 59.92% |
includes/images/knobs/validation.png | 1.68KB | 1.09KB | ▼ 35.24% |