99% events-manager-booking-payments-with-woocommerce

Code Review | Events Manager Booking Payments with WooCommerce

WordPress plugin Events Manager Booking Payments with WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: events-manager-bo...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2
  • WordPress version: 5.8.1
  • First release: Jul 5, 2019
  • Latest release: Jul 11, 2019
  • Number of updates: 10
  • Update frequency: every 9.5 days
  • Top authors: blazeconcepts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 532 total downloads


Plugin footprint Passed 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.00MB] [CPU: ▼139.60ms] Passed 4 tests

A check of server-side resources used by Events Manager Booking Payments with WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.07 ▲10.56
Dashboard /wp-admin3.06 ▲0.0040.83 ▼2.55
Posts /wp-admin/edit.php3.11 ▲0.0047.41 ▲2.04
Add New Post /wp-admin/post-new.php5.42 ▼0.0293.94 ▼559.11
Media Library /wp-admin/upload.php3.00 ▲0.0034.31 ▲1.24

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Events Manager Booking Payments with WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.84 ▼0.158.44 ▲1.1847.68 ▼4.43
Dashboard /wp-admin2,973 ▲395.98 ▲0.03129.16 ▼11.19111.15 ▼5.35
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0062.56 ▼1.9192.38 ▲6.24
Add New Post /wp-admin/post-new.php1,672 ▲8118.90 ▲0.08359.10 ▼1.56107.98 ▼0.70
Media Library /wp-admin/upload.php1,807 ▼35.02 ▼0.01154.71 ▲17.03116.17 ▼12.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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


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
5 plugin tags: woocommerce, events, payment, manager, bookings

events-manager-booking-payments-with-woocommerce/events-manager-booking-payments-with-woocommerce.php 77% from 13 tests

"Events Manager Booking Payments with WooCommerce" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.5")
  • Domain Path: The domain path folder was not found ("/lang/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin487 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions25100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png30.33KB12.62KB▼ 58.39%