83% redmaki-online-appointment-bookings

Code Review | Redmaki Online Appointment Bookings

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

About plugin

  • Plugin page: redmaki-online-ap...
  • Plugin version: 1.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Oct 4, 2021
  • Latest release: Oct 4, 2021
  • Number of updates: 2
  • Update frequency: every 8.5 days
  • Top authors: marcostuijvenberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /324 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.70ms] Passed 4 tests

A check of server-side resources used by Redmaki Online Appointment Bookings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.42 ▼7.85
Dashboard /wp-admin3.32 ▲0.0249.53 ▲0.47
Posts /wp-admin/edit.php3.37 ▲0.0252.28 ▼0.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.19 ▼3.71
Media Library /wp-admin/upload.php3.25 ▲0.0233.81 ▼2.61

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Redmaki Online Appointment Bookings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.72 ▲0.211.64 ▼0.4643.84 ▲0.59
Dashboard /wp-admin2,205 ▲285.55 ▲0.0288.11 ▼8.1441.73 ▲2.08
Posts /wp-admin/edit.php2,116 ▲131.99 ▲0.0135.99 ▼3.7035.04 ▼1.45
Add New Post /wp-admin/post-new.php1,539 ▲1323.75 ▲0.65652.85 ▲44.2454.37 ▼2.08
Media Library /wp-admin/upload.php1,419 ▲284.19 ▼0.0298.92 ▼2.7843.42 ▼4.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redmaki-online-appointment-bookings/admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/redmaki-online-appointment-bookings/redmaki-button.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: appointment, appointment scheduling, online bookings, online scheduling, bookings...

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

The main PHP file in "Redmaki Online Appointment Bookings" ver. 1.3 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:
  • Main file name: Name the main plugin file the same as the plugin slug ("redmaki-online-appointment-bookings.php" instead of "redmaki-button.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "4.7")
  • Requires PHP: The required version number did not 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected218 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File42020125
PHP2201593

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin