83% mobalize-online-appointment-bookings

Code Review | Mobalize Online Appointment Bookings

WordPress plugin Mobalize Online Appointment Bookings scored83%from 54 tests.

About plugin

  • Plugin page: mobalize-online-a...
  • Plugin version: 1.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Mar 20, 2020
  • Latest release: Oct 14, 2020
  • Number of updates: 8
  • Update frequency: every 26.2 days
  • Top authors: marcostuijvenberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /866 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.74ms] Passed 4 tests

An overview of server-side resources used by Mobalize Online Appointment Bookings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.83 ▲0.84
Dashboard /wp-admin3.32 ▼0.0245.23 ▼14.42
Posts /wp-admin/edit.php3.37 ▲0.0248.26 ▲1.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.42 ▼2.34
Media Library /wp-admin/upload.php3.24 ▲0.0234.35 ▼3.05

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mobalize Online Appointment Bookings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.24 ▼1.171.64 ▼0.2642.39 ▼1.37
Dashboard /wp-admin2,219 ▲315.81 ▲0.0195.26 ▼20.3838.17 ▼4.61
Posts /wp-admin/edit.php2,108 ▲222.03 ▲0.0742.07 ▲5.8534.41 ▼1.88
Add New Post /wp-admin/post-new.php1,546 ▲2722.91 ▼0.30645.42 ▼30.2152.41 ▲7.57
Media Library /wp-admin/upload.php1,398 ▲104.22 ▲0.0199.73 ▼8.4842.48 ▼3.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mobalize-online-appointment-bookings/mobalize-button.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobalize-online-appointment-bookings/admin.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: online bookings, bookings, appointment scheduling, appointment, online scheduling...

mobalize-online-appointment-bookings/mobalize-button.php 77% from 13 tests

The main PHP file in "Mobalize Online Appointment Bookings" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mobalize-online-appointment-bookings.php" instead of "mobalize-button.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "4.7")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.2.4" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected218 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File42020125
PHP2201593

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 code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin