Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.10ms] Passed 4 tests
A check of server-side resources used by Appointment, Reservation and Rental Booking for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 36.16 ▼10.09 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.47 ▼1.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.17 ▼1.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.94 ▼23.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.82 ▲0.22 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Appointment, Reservation and Rental Booking for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.25 ▼1.10 | 1.71 ▼0.11 | 42.79 ▲0.09 |
Dashboard /wp-admin | 2,212 ▲21 | 4.87 ▼0.98 | 102.14 ▲3.81 | 43.03 ▼1.34 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.06 ▲0.07 | 39.18 ▼3.12 | 36.39 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,539 ▲5 | 23.33 ▲0.19 | 671.66 ▲25.76 | 53.31 ▼11.14 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.19 ▼0.08 | 96.45 ▼3.11 | 42.68 ▲0.22 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/appointment-reservation-and-rental-booking-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/appointment-reservation-and-rental-booking-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/appointment-reservation-and-rental-booking-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #6, #7, #8 in appointment-reservation-and-rental-booking-for-woocommerce/assets to your readme.txt
- Tags: There are too many tags (20 tag instead of maximum 10)
appointment-reservation-and-rental-booking-for-woocommerce/phoen_date.php 77% from 13 tests
The primary PHP file in "Appointment, Reservation and Rental Booking for Woocommerce" version 3.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("appointment-reservation-and-rental-booking-for-woocommerce.php" instead of "phoen_date.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.2.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected25,665 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 5,019 | 3,134 | 19,969 |
PHP | 7 | 1,369 | 1,686 | 3,626 |
CSS | 12 | 199 | 186 | 2,070 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 41.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 5 | 4.63% |
▷ Public methods | 85 | 78.70% |
▷ Protected methods | 23 | 21.30% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 32 | 96.97% |
▷ Anonymous functions | 1 | 3.03% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/arrow-2.png | 0.42KB | 0.27KB | ▼ 35.68% |
assets/images/clock.png | 0.74KB | 0.61KB | ▼ 17.77% |
assets/images/arrow-1.png | 1.17KB | 0.27KB | ▼ 77.39% |
assets/images/aa2.png | 1.34KB | 1.26KB | ▼ 5.77% |
assets/images/calender.png | 0.76KB | 0.64KB | ▼ 15.21% |