84% experience-activities-booking-system

Code Review | Experience & Activities Booking System

WordPress plugin Experience & Activities Booking System scored84%from 54 tests.

About plugin

  • Plugin page: experience-activi...
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.3-6.0
  • WordPress version: 6.3.1
  • First release: Feb 17, 2022
  • Latest release: Jun 21, 2022
  • Number of updates: 30
  • Update frequency: every 4.1 days
  • Top authors: benjaminuppliv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,004 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼3.71ms] Passed 4 tests

A check of server-side resources used by Experience & Activities Booking System
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2137.78 ▼4.45
Dashboard /wp-admin3.51 ▲0.2046.20 ▼0.48
Posts /wp-admin/edit.php3.62 ▲0.2751.58 ▼2.48
Add New Post /wp-admin/post-new.php6.11 ▲0.2285.99 ▼6.97
Media Library /wp-admin/upload.php3.43 ▲0.2034.94 ▼0.95

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
_eabs_shortcode_checkout_page
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
_eabs_shortcode_cart_page

Browser metrics Passed 4 tests

A check of browser resources used by Experience & Activities Booking System
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲18113.60 ▼0.787.67 ▲5.8938.77 ▼12.48
Dashboard /wp-admin2,225 ▲344.81 ▼1.1095.26 ▼20.2936.95 ▼15.05
Posts /wp-admin/edit.php2,105 ▲342.02 ▲0.0039.51 ▲3.8336.36 ▲3.19
Add New Post /wp-admin/post-new.php1,538 ▲2418.62 ▲0.86594.02 ▼90.0861.50 ▲5.40
Media Library /wp-admin/upload.php1,398 ▲104.28 ▲0.0297.01 ▼17.4642.66 ▼7.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • _eabs_shortcode_cart_page
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • _eabs_shortcode_checkout_page
    • widget_theysaidso_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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant EABS_PATH - assumed 'EABS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/experience-activities-booking-system/includes/eabs-init.php on line 2
    • > PHP Notice
      Undefined variable: template_data in wp-content/plugins/experience-activities-booking-system/templates/frontend/template-single_activity.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/experience-activities-booking-system/includes/functions.php:124
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/experience-activities-booking-system/templates/frontend/template-cart.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/experience-activities-booking-system/templates/backend/eabs-general-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/experience-activities-booking-system/includes/classes/eabs.class-cart.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/experience-activities-booking-system/templates/frontend/template-activity_calendor.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/experience-activities-booking-system/includes/classes/eabs.class-view.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/experience-activities-booking-system/experience-activities-booking-system.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/experience-activities-booking-system/includes/classes/eabs.class-init.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Experience & Activities Booking System WordPress administration screen) image not found
The official readme.txt might help

experience-activities-booking-system/experience-activities-booking-system.php Passed 13 tests

The main PHP file in "Experience & Activities Booking System" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Using shortcode you can display activity on any page or post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,936 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP13243382,077
PO File78688671,859

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity37.60
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity6.38
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
There were not PNG files found in your plugin