Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼168.42ms] Passed 4 tests
An overview of server-side resources used by WP Hotel Booking Coupon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.28 ▲18.73 |
Dashboard /wp-admin | 3.06 ▲0.01 | 46.55 ▲2.89 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 44.23 ▼0.60 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 104.78 ▼661.35 |
Media Library /wp-admin/upload.php | 3.01 ▼0.00 | 34.67 ▼14.61 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Hotel Booking Coupon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲103 | 15.89 ▲0.40 | 6.60 ▼2.86 | 49.06 ▼1.48 |
Dashboard /wp-admin | 2,989 ▲55 | 6.00 ▼0.13 | 156.37 ▲2.00 | 113.63 ▼0.57 |
Posts /wp-admin/edit.php | 2,761 ▲22 | 2.83 ▲0.02 | 72.60 ▲6.71 | 96.86 ▲4.57 |
Add New Post /wp-admin/post-new.php | 1,627 ▼56 | 20.92 ▲4.84 | 287.64 ▼95.40 | 109.83 ▼8.19 |
Media Library /wp-admin/upload.php | 1,827 ▲17 | 5.00 ▼0.02 | 159.53 ▼20.80 | 125.92 ▼5.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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
Good news, no errors were detected
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-hotel-booking-coupon/wp-hotel-booking-coupon.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
7 plugin tags: discount, hotel booking, reservations, booking, coupon...
wp-hotel-booking-coupon/wp-hotel-booking-coupon.php Passed 13 tests
The main file in "WP Hotel Booking Coupon" v. 1.7.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
23 characters long description:
WP Hotel Booking Coupon
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected251 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 90 | 251 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin