68% hotel-bookings-progress-bar-for-motopress

Code Review | Hotel Bookings Progress Bar for MotoPress

WordPress plugin Hotel Bookings Progress Bar for MotoPress scored68%from 54 tests.

About plugin

  • Plugin page: hotel-bookings-pr...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 6, 2021
  • Latest release: May 28, 2022
  • Number of updates: 7
  • Update frequency: every 51.0 days
  • Top authors: millswebdevelopment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,167 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.92MB] [CPU: ▼34.83ms] Passed 4 tests

Server-side resources used by Hotel Bookings Progress Bar for MotoPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0524.21 ▼16.53
Dashboard /wp-admin3.02 ▼0.2823.85 ▼22.65
Posts /wp-admin/edit.php3.02 ▼0.3426.31 ▼21.62
Add New Post /wp-admin/post-new.php3.02 ▼2.8722.33 ▼78.53
Media Library /wp-admin/upload.php3.02 ▼0.2120.17 ▼12.82
Booking Progress Bar /wp-admin/options-general.php?page=hotel_booking_progress_bar_menu3.0223.28

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Hotel Bookings Progress Bar for MotoPress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,488 ▼28313.25 ▼1.120.49 ▼1.4719.50 ▼21.59
Dashboard /wp-admin2,229 ▲585.25 ▲0.17110.60 ▼6.9540.42 ▼1.98
Posts /wp-admin/edit.php2,117 ▲252.31 ▲0.2943.13 ▲3.6432.79 ▼3.47
Add New Post /wp-admin/post-new.php1,531 ▲1217.85 ▼5.34657.66 ▲0.1745.95 ▼16.46
Media Library /wp-admin/upload.php1,411 ▲204.42 ▲0.25106.16 ▲7.8743.76 ▼0.53
Booking Progress Bar /wp-admin/options-general.php?page=hotel_booking_progress_bar_menu7971.9727.1326.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=hotel_booking_progress_bar_menu
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hotel-bookings-progress-bar-for-motopress/hotel-booking-progress-bar.php:26

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: motopress

hotel-bookings-progress-bar-for-motopress/hotel-booking-progress-bar.php 77% from 13 tests

The main PHP file in "Hotel Bookings Progress Bar for MotoPress" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hotel-bookings-progress-bar-for-motopress.php" instead of "hotel-booking-progress-bar.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin213 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24123124
JavaScript213649
CSS15040

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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
There were not PNG files found in your plugin