Benchmarks
Plugin footprint 83% from 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 gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.27ms] Passed 4 tests
Analyzing server-side resources used by Hotel Booking & Divi Integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.22 ▼7.29 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.70 ▼6.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.28 ▲2.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.63 ▼13.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.54 ▲2.76 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Hotel Booking & Divi Integration: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.33 | 1.60 ▼0.23 | 36.72 ▼7.39 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▲0.00 | 92.53 ▼1.98 | 39.98 ▲0.28 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.00 | 37.45 ▼5.31 | 35.77 ▼3.77 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 18.48 ▼4.50 | 611.21 ▲4.74 | 71.86 ▲22.87 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.25 ▲0.08 | 103.14 ▼3.49 | 41.99 ▼2.09 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/mphb-divi/includes/mphb.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mphb-divi/mphb-divi.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mphb-divi/includes/functions.php:123
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: booking, divi builder, hotel, property rental, reservation...
mphb-divi/mphb-divi.php Passed 13 tests
The principal PHP file in "Hotel Booking & Divi Integration" v. 1.0.8 is loaded by WordPress automatically on each request
117 characters long description:
Integrates Divi theme with the MotoPress Hotel Booking plugin to modify content and styles visually via Divi builder.
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
There were no executable files found in this plugin2,452 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 248 | 36 | 1,403 |
JavaScript | 6 | 75 | 65 | 311 |
Sass | 1 | 39 | 10 | 289 |
CSS | 2 | 18 | 4 | 257 |
JSX | 11 | 99 | 36 | 192 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 2.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 11 | 23.40% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin