Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.94ms] Passed 4 tests
An overview of server-side resources used by Hotel Booking Styles & Templates
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.57 ▼6.37 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.58 ▼3.02 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 50.21 ▲5.19 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 87.30 ▲0.69 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.88 ▲4.94 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Hotel Booking Styles & Templates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.17 ▼1.46 | 1.72 ▲0.20 | 40.48 ▼3.95 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▲0.00 | 109.92 ▲7.40 | 42.99 ▲6.78 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.03 ▼0.00 | 35.15 ▲0.26 | 32.04 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,543 ▲9 | 18.24 ▼5.00 | 623.67 ▼10.93 | 75.91 ▲11.91 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.27 ▲0.05 | 95.56 ▼7.93 | 43.95 ▼0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function MPHBTemplates\\Blocks\\add_action() in wp-content/plugins/mphb-styles/includes/template-editor/includes/blocks/template.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function MPHBTemplates\\MPHB() in wp-content/plugins/mphb-styles/includes/template-editor/includes/templates.php:21
- > PHP Warning
Use of undefined constant MPHB_TEMPLATES_PATH - assumed 'MPHB_TEMPLATES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mphb-styles/includes/template-editor/includes/blocks.php on line 25
- > PHP Warning
Use of undefined constant MPHB_TEMPLATES_PATH - assumed 'MPHB_TEMPLATES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mphb-styles/includes/template-editor/includes/blocks.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function MPHBTemplates\\Blocks\\add_action() in wp-content/plugins/mphb-styles/includes/template-editor/includes/blocks/title.php:14
- > PHP Warning
Use of undefined constant MPHB_TEMPLATES_PATH - assumed 'MPHB_TEMPLATES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mphb-styles/includes/template-editor/includes/blocks.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function MPHBTemplates\\Blocks\\add_action() in wp-content/plugins/mphb-styles/includes/template-editor/includes/blocks/attributes.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function MPHBTemplates\\Blocks\\add_action() in wp-content/plugins/mphb-styles/includes/template-editor/includes/blocks/wrapper.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function MPHBTemplates\\PostTypes\\add_action() in wp-content/plugins/mphb-styles/includes/template-editor/includes/post-types/template.php:10
- > PHP Warning
Use of undefined constant MPHB_TEMPLATES_PATH - assumed 'MPHB_TEMPLATES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mphb-styles/includes/template-editor/includes/blocks.php on line 25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in mphb-styles/assets to your readme.txt
mphb-styles/mphb-styles.php 92% from 13 tests
Analyzing the main PHP file in "Hotel Booking Styles & Templates" version 1.1.1
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected26,643 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 18 | 0 | 0 | 23,931 |
PHP | 29 | 382 | 104 | 1,374 |
JavaScript | 21 | 70 | 11 | 861 |
Sass | 4 | 44 | 5 | 263 |
CSS | 3 | 33 | 0 | 214 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 55 | 65.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 29 | 34.52% |
Functions | 16 | |
▷ Named functions | 16 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin