83% woo-event-manager

Code Review | Woo Events Manager

WordPress plugin Woo Events Manager scored 83% from 54 tests.

About plugin

  • Plugin page: woo-event-manager
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: Mar 2, 2017
  • Number of updates: 24
  • Update frequency: every 15.0 days
  • Top authors: cybersource (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 10,843 total downloads

Benchmarks

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

Server-side resources used by Woo Events Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.09 ▲0.02
Dashboard /wp-admin3.31 ▲0.0043.24 ▼5.07
Posts /wp-admin/edit.php3.36 ▲0.0041.17 ▼6.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.84 ▼11.30
Media Library /wp-admin/upload.php3.23 ▲0.0032.80 ▲0.57

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
widget_ccw_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Events Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.201.92 ▲0.1843.39 ▲3.20
Dashboard /wp-admin2,209 ▲235.86 ▲0.9296.27 ▼9.1941.40 ▼5.44
Posts /wp-admin/edit.php2,089 ▼02.15 ▲0.1633.81 ▼2.9231.68 ▼3.52
Add New Post /wp-admin/post-new.php1,517 ▼1617.76 ▼5.31657.34 ▼4.5750.60 ▼1.75
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0395.26 ▼13.5142.93 ▼0.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_ccw_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-event-manager/includes/admin/class.admin.events-settings-tab.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-event-manager/includes/widget/ccw_class.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes: You can look at the official readme.txt

woo-event-manager/woocommerce-events-manager.php 85% from 13 tests

This is the main PHP file of "Woo Events Manager" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-event-manager.php" instead of "woocommerce-events-manager.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin4,889 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44924293,379
PHP3420189921
CSS820339483
PO File14244106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity36.50
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity7.45
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/widget/images/scanlines_dark.png0.93KB0.10KB▼ 88.92%
assets/images/scanlines_dark.png0.93KB0.10KB▼ 88.92%