Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.19MB] [CPU: ▲10.83ms] Passed 4 tests
A check of server-side resources used by Easy Appointments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.48 ▲1.02 | 41.74 ▲2.62 |
Dashboard /wp-admin | 4.53 ▲1.23 | 55.73 ▲9.10 |
Posts /wp-admin/edit.php | 4.65 ▲1.29 | 64.56 ▲16.22 |
Add New Post /wp-admin/post-new.php | 7.26 ▲1.37 | 109.58 ▲15.38 |
Media Library /wp-admin/upload.php | 4.45 ▲1.23 | 51.93 ▲17.95 |
Reports *OLD* /wp-admin/admin.php?page=easy_app_reports | 4.44 | 48.46 |
Vacation /wp-admin/admin.php?page=easy_app_vacation | 4.44 | 45.00 |
1. Locations /wp-admin/admin.php?page=easy_app_locations | 4.43 | 44.59 |
3. Employees /wp-admin/admin.php?page=easy_app_workers | 4.43 | 43.54 |
4. Connections /wp-admin/admin.php?page=easy_app_connections | 4.44 | 44.10 |
5. Settings /wp-admin/admin.php?page=easy_app_settings | 4.65 | 46.45 |
6. Tools /wp-admin/admin.php?page=easy_app_tools | 4.44 | 46.99 |
Reports *NEW* /wp-admin/admin.php?page=easy_app_new_reports | 4.52 | 46.07 |
2. Services /wp-admin/admin.php?page=easy_app_services | 4.43 | 41.84 |
Appointments /wp-admin/admin.php?page=easy_app_top_level | 4.47 | 46.53 |
Server storage [IO: ▲9.78MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 396 new files
Database: 9 new tables, 7 new options
New tables |
---|
wp_ea_meta_fields |
wp_ea_error_logs |
wp_ea_services |
wp_ea_options |
wp_ea_locations |
wp_ea_fields |
wp_ea_connections |
wp_ea_appointments |
wp_ea_staff |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
easy_app_db_version |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Appointments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.22 ▼1.16 | 4.39 ▲2.28 | 41.61 ▼8.45 |
Dashboard /wp-admin | 2,258 ▲73 | 5.77 ▲0.84 | 97.18 ▼4.34 | 42.04 ▼10.53 |
Posts /wp-admin/edit.php | 2,147 ▲55 | 2.01 ▲0.02 | 42.03 ▲2.82 | 36.71 ▲4.59 |
Add New Post /wp-admin/post-new.php | 1,585 ▲43 | 23.28 ▲4.51 | 681.84 ▲36.29 | 56.87 ▼12.77 |
Media Library /wp-admin/upload.php | 1,446 ▲61 | 4.16 ▼0.08 | 100.95 ▼13.30 | 44.33 ▼5.33 |
Reports *OLD* /wp-admin/admin.php?page=easy_app_reports | 929 | 2.90 | 50.78 | 35.07 |
Vacation /wp-admin/admin.php?page=easy_app_vacation | 1,149 | 8.62 | 181.55 | 106.12 |
1. Locations /wp-admin/admin.php?page=easy_app_locations | 1,131 | 8.47 | 198.45 | 54.92 |
3. Employees /wp-admin/admin.php?page=easy_app_workers | 1,136 | 8.60 | 78.69 | 50.85 |
4. Connections /wp-admin/admin.php?page=easy_app_connections | 1,147 | 8.75 | 79.75 | 52.01 |
5. Settings /wp-admin/admin.php?page=easy_app_settings | 3,108 | 8.15 | 152.83 | 38.08 |
6. Tools /wp-admin/admin.php?page=easy_app_tools | 1,182 | 8.85 | 82.75 | 62.84 |
Reports *NEW* /wp-admin/admin.php?page=easy_app_new_reports | 1,044 | 7.87 | 74.03 | 47.41 |
2. Services /wp-admin/admin.php?page=easy_app_services | 1,134 | 8.42 | 75.08 | 47.47 |
Appointments /wp-admin/admin.php?page=easy_app_top_level | 2,030 | 4.16 | 72.35 | 32.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ea_error_logs
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/easy-appointments/src/templates/connections.tpl.php
- > /wp-content/plugins/easy-appointments/src/templates/services.tpl.php
- > /wp-content/plugins/easy-appointments/src/templates/workers.tpl.php
- > /wp-content/plugins/easy-appointments/src/templates/booking.overview.tpl.php
- > /wp-content/plugins/easy-appointments/src/templates/reports.tpl.php
- > /wp-content/plugins/easy-appointments/src/templates/locations.tpl.php
- > /wp-content/plugins/easy-appointments/src/templates/phone.field.tpl.php
- > /wp-content/plugins/easy-appointments/src/templates/asp_tag_message.tpl.php
- > /wp-content/plugins/easy-appointments/src/templates/phone.list.tpl.php
- > /wp-content/plugins/easy-appointments/src/templates/vacation.tpl.php
- 24× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/easy-appointments/src/templates/ea_bootstrap.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/easy-appointments/src/templates/appointments.tpl.php:3
- > PHP Warning
require_once(wp-content/plugins/easy-appointments/vendor/lucatume/di52/vendor/autoload_52.php): failed to open stream: No such file or directory in wp-content/plugins/easy-appointments/vendor/lucatume/di52/tests/bootstrap.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Leuffen\\TextTemplate\\TextTemplate' not found in wp-content/plugins/easy-appointments/vendor/text/template/src/buildInFilters.inc.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/easy-appointments/src/templates/ea_bootstrap_rtl.tpl.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-appointments/vendor/lucatume/di52/tests/52-compat/autoloadTest.php:4
- > PHP Fatal error
Uncaught Error: Class 'Leuffen\\TextTemplate\\TemplateParsingException' not found in wp-content/plugins/easy-appointments/vendor/text/template/src/UndefinedVariableException.php:14
- > PHP Fatal error
Uncaught Error: Interface 'tad_DI52_ServiceProviderInterface' not found in wp-content/plugins/easy-appointments/vendor/lucatume/di52/src/tad/DI52/ServiceProvider.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/easy-appointments/src/templates/admin.tpl.php:3
- > PHP Fatal error
Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/easy-appointments/vendor/jaybizzle/crawler-detect/src/Fixtures/Exclusions.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=easy_app_reports
- > Network (severe)
wp-content/plugins/easy-appointments/fonts/roboto/Roboto-Regular-webfont.woff2 - Failed to load resource: the server responded with a status of 404 (Not 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
10 plugin tags: booking, reservations, reservation plugin, appointment, schedule...
easy-appointments/main.php 92% from 13 tests
Analyzing the main PHP file in "Easy Appointments" version 3.11.11
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-appointments.php" instead of "main.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
Everything looks great! No dangerous files found in this plugin74,201 lines of code in 283 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 74 | 2,499 | 3,623 | 24,782 |
CSS | 26 | 600 | 571 | 18,947 |
PHP | 103 | 3,049 | 3,381 | 12,813 |
PO File | 17 | 5,038 | 7,411 | 12,040 |
SVG | 16 | 4 | 9 | 3,050 |
Markdown | 6 | 359 | 0 | 918 |
Sass | 3 | 106 | 2 | 680 |
Bourne Shell | 1 | 138 | 48 | 446 |
JSON | 27 | 0 | 0 | 360 |
YAML | 5 | 26 | 3 | 58 |
HTML | 1 | 9 | 1 | 43 |
make | 1 | 6 | 0 | 32 |
XML | 1 | 0 | 0 | 17 |
Ant | 1 | 4 | 3 | 12 |
INI | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 12 | |
Traits | 0 | |
Classes | 100 | |
▷ Abstract classes | 3 | 3.00% |
▷ Concrete classes | 97 | 97.00% |
▷ Final classes | 0 | 0.00% |
Methods | 617 | |
▷ Static methods | 46 | 7.46% |
▷ Public methods | 568 | 92.06% |
▷ Protected methods | 13 | 2.11% |
▷ Private methods | 36 | 5.83% |
Functions | 92 | |
▷ Named functions | 9 | 9.78% |
▷ Anonymous functions | 83 | 90.22% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ 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
6 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/label-inline.png | 8.08KB | 2.11KB | ▼ 73.85% |
img/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
img/label-from.png | 27.96KB | 7.13KB | ▼ 74.49% |
css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
img/label-above.png | 10.00KB | 3.00KB | ▼ 70.00% |