68% maid-booking

Code Review | Maid Booking

WordPress plugin Maid Booking scored 68% from 54 tests.

About plugin

  • Plugin page: maid-booking
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Jun 6, 2016
  • Latest release: Mar 12, 2020
  • Number of updates: 11
  • Update frequency: every 127.4 days
  • Top authors: Nemanja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,523 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 gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.53ms] Passed 4 tests

This is a short check of server-side resources used by Maid Booking
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0746.65 ▲8.11
Dashboard /wp-admin3.37 ▲0.0744.51 ▼3.79
Posts /wp-admin/edit.php3.49 ▲0.1347.40 ▲2.24
Add New Post /wp-admin/post-new.php5.95 ▲0.0792.06 ▼2.17
Media Library /wp-admin/upload.php3.30 ▲0.0734.34 ▼2.41
Maid booking /wp-admin/options-general.php?page=maid-booking3.2730.32

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 15 new options
New WordPress options
supervisor_email
widget_recent-posts
theysaidso_admin_options
max_bathrooms
maid_subtitle
price_per_bathroom
price_per_bedroom
widget_theysaidso_widget
db_upgraded
base_price
...

Browser metrics Passed 4 tests

A check of browser resources used by Maid Booking
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.32 ▼1.231.59 ▼0.1337.40 ▼11.32
Dashboard /wp-admin2,210 ▲254.85 ▼1.00107.34 ▼1.9445.62 ▲1.89
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0438.62 ▲1.3435.66 ▲2.43
Add New Post /wp-admin/post-new.php1,523 ▲323.26 ▲0.04660.22 ▼26.6460.51 ▲8.92
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0899.42 ▼2.8542.72 ▼3.92
Maid booking /wp-admin/options-general.php?page=maid-booking9132.0622.3027.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/maid-booking/maid-booking.php+95
    Undefined variable: post_id
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=maid-booking
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=maid-booking
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/maid-booking/templates/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/maid-booking/maid-booking.php:189
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/maid-booking/templates/shortcode.php on line 1
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/maid-booking/templates/shortcode.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/maid-booking/templates/booking_metabox.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maid-booking/templates/shortcode.php:5

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: A description for screenshot #1 is missing in maid-booking/assets to your readme.txt
The official readme.txt might help

maid-booking/maid-booking.php Passed 13 tests

The main PHP script in "Maid Booking" version 1.0.2 is automatically included on every request by WordPress
49 characters long description:
This plugin adds a simple maid booking shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,257 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4118143466
PHP6108132301
Sass2395188
PO File25860154
CSS3512148

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.33
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin