84% igumbi-online-booking

Code Review | igumbi Online Booking

WordPress plugin igumbi Online Booking scored84%from 54 tests.

About plugin

  • Plugin page: igumbi-online-boo...
  • Plugin version: 1.37
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 2, 2013
  • Latest release: Oct 25, 2023
  • Number of updates: 87
  • Update frequency: every 42.3 days
  • Top authors: smtm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /7,931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.75ms] Passed 4 tests

Analyzing server-side resources used by igumbi Online Booking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.45 ▼0.25
Dashboard /wp-admin3.37 ▲0.0243.57 ▼15.44
Posts /wp-admin/edit.php3.48 ▲0.1246.45 ▼1.46
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.65 ▼17.84
Media Library /wp-admin/upload.php3.29 ▲0.0636.36 ▲2.24
igumbi Online Booking /wp-admin/options-general.php?page=igumbi-admin-menu3.28342.43

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_igumbi_widget
igumbi_custom_css
igumbi_hotel_id
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
igumbi_wide
igumbi_language
...

Browser metrics Passed 4 tests

igumbi Online Booking: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.27 ▲0.051.92 ▲0.3044.01 ▲5.11
Dashboard /wp-admin2,199 ▲245.56 ▼0.1693.35 ▼5.9740.35 ▼0.88
Posts /wp-admin/edit.php2,104 ▲11.94 ▼0.0257.05 ▲12.2139.45 ▲2.86
Add New Post /wp-admin/post-new.php1,529 ▲123.72 ▲0.61675.98 ▼9.1757.15 ▲4.51
Media Library /wp-admin/upload.php1,404 ▲74.23 ▲0.0595.21 ▼2.0041.66 ▼3.02
igumbi Online Booking /wp-admin/options-general.php?page=igumbi-admin-menu3,5872.2329.4856.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_igumbi_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/igumbi-online-booking/includes/views/admin-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/igumbi-online-booking/igumbi-online-booking.php:14

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (39 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

igumbi-online-booking/igumbi-online-booking.php 92% from 13 tests

"igumbi Online Booking" version 1.37's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 610 characters long)

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
No dangerous file extensions were detected890 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File3122128579
PHP24716311

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants0
▷ Global constants00.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
No PNG files were detected