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
Install script ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼6.96ms] Passed 4 tests
Analyzing server-side resources used by Mybooking Templates Importer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 40.66 ▼6.26 |
Dashboard /wp-admin | 3.96 ▲0.61 | 61.54 ▼6.20 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 56.58 ▲1.60 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.58 | 90.13 ▼16.98 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 42.45 ▲5.17 |
Mybooking Importer /wp-admin/themes.php?page=mybooking-templates-import | 3.99 | 43.92 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Mybooking Templates Importer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.28 ▼0.45 | 1.94 ▲0.12 | 42.79 ▼5.25 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▲0.02 | 91.34 ▼4.49 | 41.77 ▼1.71 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.03 | 39.12 ▲1.99 | 35.49 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.53 ▲0.39 | 624.14 ▼57.16 | 55.24 ▼0.85 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.26 ▲0.07 | 98.64 ▼16.26 | 45.75 ▼3.08 |
Mybooking Importer /wp-admin/themes.php?page=mybooking-templates-import | 887 | 1.96 | 36.23 | 40.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mybooking-templates-importer/mybooking-templates-importer.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLoggerCLI' not found in wp-content/plugins/mybooking-templates-importer/inc/Logger.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mybooking-templates-importer/views/plugin-page.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mybooking-templates-importer/inc/MyBookingTemplateSites.php:20
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/mybooking-templates-importer/vendor/awesomemotive/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/mybooking-templates-importer/vendor/awesomemotive/wp-content-importer-v2/src/WXRImporter.php:7
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/mybooking-templates-importer/vendor/awesomemotive/wp-content-importer-v2/src/Importer.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/mybooking-templates-importer/inc/CustomizerOption.php:14
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/mybooking-templates-importer/inc/WXRImporter.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/mybooking-templates-importer/inc/WPCLICommands.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 96% from 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
8 plugin tags: data, theme options, demo, redux, widgets...
mybooking-templates-importer/mybooking-templates-importer.php 92% from 13 tests
Analyzing the main PHP file in "Mybooking Templates Importer" version 1.0.0
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
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
No dangerous file extensions were detected5,668 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,076 | 1,918 | 3,712 |
XML | 1 | 19 | 42 | 1,310 |
CSS | 1 | 67 | 11 | 270 |
JavaScript | 1 | 53 | 69 | 197 |
JSON | 3 | 1 | 0 | 120 |
Markdown | 3 | 30 | 0 | 59 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 30.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 180 | |
▷ Static methods | 32 | 17.78% |
▷ Public methods | 118 | 65.56% |
▷ Protected methods | 37 | 20.56% |
▷ Private methods | 25 | 13.89% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/rent_standard_selector/preview.png | 131.99KB | 63.62KB | ▼ 51.80% |