99% sbita-bookly-ui-add-on

Code Review | Better user interface and experience for Bookly | Sbita Bookly Ui

WordPress plugin Better user interface and experience for Bookly | Sbita Bookly Ui scored 99% from 54 tests.

About plugin

  • Plugin page: sbita-bookly-ui-a...
  • 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 1, 2021
  • Latest release: Oct 6, 2021
  • Number of updates: 11
  • Update frequency: every 0.5 days
  • Top authors: sbita (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 226 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼142.17ms] Passed 4 tests

An overview of server-side resources used by Better user interface and experience for Bookly | Sbita Bookly Ui
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.2436.09 ▲16.39
Dashboard /wp-admin3.24 ▲0.1947.81 ▲1.25
Posts /wp-admin/edit.php3.29 ▲0.1847.91 ▲2.11
Add New Post /wp-admin/post-new.php5.54 ▲0.1093.38 ▼564.61
Media Library /wp-admin/upload.php3.12 ▲0.1228.10 ▼7.43

Server storage [IO: ▲0.09MB] [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: 39 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Better user interface and experience for Bookly | Sbita Bookly Ui
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,731 ▲12516.26 ▲0.199.57 ▼1.5453.30 ▲7.91
Dashboard /wp-admin2,995 ▲595.95 ▼0.11152.97 ▼4.81104.21 ▼9.58
Posts /wp-admin/edit.php2,768 ▲292.71 ▲0.0169.35 ▲4.8889.55 ▲2.94
Add New Post /wp-admin/post-new.php1,702 ▲1918.42 ▲0.03408.44 ▲7.25106.73 ▼2.04
Media Library /wp-admin/upload.php1,777 ▼335.00 ▼0.06157.46 ▲3.04112.87 ▼0.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: bookly, add-on, booking, ui, elementor

sbita-bookly-ui-add-on/main.php 77% from 13 tests

Analyzing the main PHP file in "Better user interface and experience for Bookly | Sbita Bookly Ui" version 1.0.4
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sbita-bookly-ui-add-on.php" instead of "main.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,750 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP333825541,519
CSS1418157
JavaScript16037
Markdown15037

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.66
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods62
▷ Static methods4267.74%
▷ Public methods5690.32%
▷ Protected methods46.45%
▷ Private methods23.23%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin