Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼139.39ms] Passed 4 tests
Analyzing server-side resources used by Seo for Bookly | Sbita Bookly Seo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.27 | 35.68 ▲13.77 |
Dashboard /wp-admin | 3.27 ▲0.22 | 54.45 ▲8.25 |
Posts /wp-admin/edit.php | 3.32 ▲0.22 | 52.46 ▲5.49 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 92.77 ▼574.66 |
Media Library /wp-admin/upload.php | 3.15 ▲0.15 | 40.01 ▲3.36 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Seo for Bookly | Sbita Bookly Seo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,731 ▲135 | 15.87 ▲0.01 | 7.81 ▼3.94 | 55.18 ▲1.57 |
Dashboard /wp-admin | 2,998 ▲67 | 5.90 ▼0.03 | 152.15 ▼9.99 | 126.74 ▲7.19 |
Posts /wp-admin/edit.php | 2,768 ▲29 | 2.69 ▼0.00 | 71.05 ▲3.79 | 97.39 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,515 ▼168 | 18.52 ▲0.01 | 393.00 ▼11.70 | 114.58 ▼8.37 |
Media Library /wp-admin/upload.php | 1,839 ▲32 | 5.03 ▲0.01 | 159.89 ▲2.75 | 129.11 ▼3.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller 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
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function sbita_get_option() in wp-content/plugins/sbita-bookly-seo-add-on/templates/shortcodes/service-details-img.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sbita-bookly-seo-add-on/templates/shortcodes/staff-details.php:8
- > PHP Notice
Undefined variable: attrs in wp-content/plugins/sbita-bookly-seo-add-on/templates/shortcodes/staff-details.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function sbita_get_option() in wp-content/plugins/sbita-bookly-seo-add-on/templates/shortcodes/staff-details-img.php:10
- > PHP Notice
Undefined variable: attrs in wp-content/plugins/sbita-bookly-seo-add-on/templates/shortcodes/service-details.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sbita-bookly-seo-add-on/templates/shortcodes/service-details.php:8
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: bookly, seo, add-on, booking
sbita-bookly-seo-add-on/main.php 77% from 13 tests
The main PHP file in "Seo for Bookly | Sbita Bookly Seo" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("sbita-bookly-seo-add-on.php" instead of "main.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,063 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 225 | 269 | 951 |
CSS | 1 | 22 | 1 | 88 |
Markdown | 1 | 7 | 0 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 52 | |
▷ Static methods | 52 | 100.00% |
▷ Public methods | 50 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.85% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/bookly-seo.png | 1.38KB | 0.52KB | ▼ 62.74% |