93% sbita-bookly-seo-add-on

Code Review | Seo for Bookly | Sbita Bookly Seo

WordPress plugin Seo for Bookly | Sbita Bookly Seo scored 93% from 54 tests.

About plugin

  • Plugin page: sbita-bookly-seo-...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.1
  • WordPress version: 5.8.1
  • First release: Oct 5, 2021
  • Latest release: Oct 6, 2021
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: sbita (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 77 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.99 ▲0.2735.68 ▲13.77
Dashboard /wp-admin3.27 ▲0.2254.45 ▲8.25
Posts /wp-admin/edit.php3.32 ▲0.2252.46 ▲5.49
Add New Post /wp-admin/post-new.php5.57 ▲0.1492.77 ▼574.66
Media Library /wp-admin/upload.php3.15 ▲0.1540.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,731 ▲13515.87 ▲0.017.81 ▼3.9455.18 ▲1.57
Dashboard /wp-admin2,998 ▲675.90 ▼0.03152.15 ▼9.99126.74 ▲7.19
Posts /wp-admin/edit.php2,768 ▲292.69 ▼0.0071.05 ▲3.7997.39 ▼2.22
Add New Post /wp-admin/post-new.php1,515 ▼16818.52 ▲0.01393.00 ▼11.70114.58 ▼8.37
Media Library /wp-admin/upload.php1,839 ▲325.03 ▲0.01159.89 ▲2.75129.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP16225269951
CSS122188
Markdown17024

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 code0.26
Average class complexity6.27
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods52
▷ Static methods52100.00%
▷ Public methods5096.15%
▷ Protected methods00.00%
▷ Private methods23.85%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/bookly-seo.png1.38KB0.52KB▼ 62.74%