89% wp-events-manager-woocommerce-payment-methods-integration

Code Review | WP Events Manager WooCommerce

WordPress plugin WP Events Manager WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wp-events-manager...
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Dec 26, 2017
  • Latest release: Aug 31, 2023
  • Number of updates: 13
  • Update frequency: every 159.8 days
  • Top authors: ThimPress (38.46%)phamtungpth (38.46%)leehld (38.46%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /24,165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.13MB] [CPU: ▼9.10ms] Passed 4 tests

Server-side resources used by WP Events Manager WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0338.83 ▼16.44
Dashboard /wp-admin3.31 ▲0.0148.72 ▼8.06
Posts /wp-admin/edit.php3.36 ▼0.4962.62 ▲15.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.94 ▼13.54
Media Library /wp-admin/upload.php3.23 ▲0.0036.50 ▲1.63

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Events Manager WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲4014.47 ▲0.381.70 ▼0.6840.93 ▼6.10
Dashboard /wp-admin2,217 ▲294.85 ▼0.03116.50 ▲16.0843.26 ▲1.28
Posts /wp-admin/edit.php2,100 ▲112.06 ▲0.0850.51 ▲16.1049.52 ▲15.37
Add New Post /wp-admin/post-new.php1,550 ▲2223.27 ▲5.18662.92 ▲33.0561.32 ▲9.06
Media Library /wp-admin/upload.php1,393 ▲54.27 ▲0.06103.41 ▼1.8845.38 ▲2.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: The official readme.txt might help

wp-events-manager-woocommerce-payment-methods-integration/wp-events-manager-woocommerce.php 77% from 13 tests

The main PHP script in "WP Events Manager WooCommerce" version 2.0.6 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-events-manager-woocommerce-payment-methods-integration.php" instead of "wp-events-manager-woocommerce.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.2" instead of "3.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin377 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6114293374
CSS1103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity8.83
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods41
▷ Static methods37.32%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/woo_payment.png12.30KB4.41KB▼ 64.12%