Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.68ms] Passed 4 tests
This is a short check of server-side resources used by AvaiBook vacation rental booking engine
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.40 ▲3.37 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.54 ▼2.08 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 46.53 ▼3.98 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.85 ▼14.68 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.78 ▲2.02 |
Server storage [IO: ▲8.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_avaibook_widget_3 |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_avaibook_widget_2 |
db_upgraded |
widget_theysaidso_widget |
widget_avaibook_widget_1 |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AvaiBook vacation rental booking engine
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.50 ▲0.10 | 1.87 ▲0.05 | 42.96 ▼1.13 |
Dashboard /wp-admin | 2,218 ▲36 | 4.82 ▼0.07 | 109.99 ▲5.80 | 37.93 ▼8.62 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.17 ▲0.12 | 41.10 ▲3.27 | 36.75 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,543 ▲14 | 23.35 ▲5.02 | 667.48 ▲23.10 | 51.10 ▼3.17 |
Media Library /wp-admin/upload.php | 1,397 ▲15 | 4.15 ▼0.14 | 103.08 ▲6.62 | 44.58 ▲2.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- widget_avaibook_widget_3
- widget_avaibook_widget_2
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_avaibook_widget_1
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: vacation rental booking engine, avaibook, booking system, booking engine, online booking...
avaibook/avaibook.php Passed 13 tests
Analyzing the main PHP file in "AvaiBook vacation rental booking engine" version 1.2
44 characters long description:
Show Avaibook booking form in your wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,245 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 425 | 104 | 1,415 |
PO File | 8 | 431 | 439 | 1,041 |
PHP | 4 | 165 | 85 | 519 |
CSS | 2 | 49 | 3 | 270 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 7.49MB with 3.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 79.16KB | 28.59KB | ▼ 63.88% |
assets/icon-128x128.png | 1.45KB | 1.30KB | ▼ 10.55% |
assets/screenshot-1.png | 276.11KB | 86.21KB | ▼ 68.78% |
assets/icon-256x256.png | 3.80KB | 3.50KB | ▼ 8.02% |
assets/screenshot-8.png | 1,517.67KB | 374.88KB | ▼ 75.30% |