74% easy-events-manager

Code Review | Easy Events Manager

WordPress plugin Easy Events Manager scored74%from 54 tests.

About plugin

  • Plugin page: easy-events-manager
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 2, 2019
  • Latest release: Apr 15, 2020
  • Number of updates: 20
  • Update frequency: every 10.0 days
  • Top authors: jaedm97 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /8,295 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼1.12ms] Passed 4 tests

An overview of server-side resources used by Easy Events Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2736.82 ▼4.11
Dashboard /wp-admin3.58 ▲0.2846.38 ▼3.18
Posts /wp-admin/edit.php3.64 ▲0.2849.06 ▲0.83
Add New Post /wp-admin/post-new.php6.10 ▲0.2191.78 ▲6.05
Media Library /wp-admin/upload.php3.42 ▲0.1934.95 ▲1.99
Add Event /wp-admin/post-new.php?post_type=event3.6354.41
Templates /wp-admin/edit.php?post_type=event_template3.5644.25
Settings /wp-admin/edit.php?post_type=event&page=eem-settings3.4232.43
Attendees /wp-admin/edit.php?post_type=event&page=attendees3.4936.90
Extensions /wp-admin/edit.php?post_type=event&page=eem-extensions3.50199.48
All Events /wp-admin/edit.php?post_type=event3.5638.76
Event Category /wp-admin/edit-tags.php?taxonomy=event_cat&post_type=event3.5034.31

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 68 new files
Database: 1 new table, 6 new options
New tables
wp_eem_attendees
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Events Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,127 ▲38115.73 ▲1.348.76 ▲6.9839.27 ▼4.32
Dashboard /wp-admin2,411 ▲2206.45 ▲1.59118.95 ▲17.9537.84 ▼5.15
Posts /wp-admin/edit.php2,317 ▲2253.45 ▲1.4651.65 ▲7.4333.32 ▼2.86
Add New Post /wp-admin/post-new.php1,577 ▲5823.37 ▲0.37603.14 ▼16.7033.98 ▼18.69
Media Library /wp-admin/upload.php1,450 ▲624.17 ▼0.0483.38 ▼14.4142.44 ▼0.72
Add Event /wp-admin/post-new.php?post_type=event2,8718.43205.0188.20
Templates /wp-admin/edit.php?post_type=event_template1,2983.5564.3440.02
Settings /wp-admin/edit.php?post_type=event&page=eem-settings1,1343.3654.1233.28
Attendees /wp-admin/edit.php?post_type=event&page=attendees1,0913.3348.6733.76
Extensions /wp-admin/edit.php?post_type=event&page=eem-extensions1,0513.3047.5327.30
All Events /wp-admin/edit.php?post_type=event1,3003.6258.5027.78
Event Category /wp-admin/edit-tags.php?taxonomy=event_cat&post_type=event1,4903.2642.8026.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_eem_attendees
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/easy-events-manager/templates/single-event.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-events-manager/includes/template-hooks.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function eem_get_event() in wp-content/plugins/easy-events-manager/templates/content-single-event.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'EEM_Item_data' not found in wp-content/plugins/easy-events-manager/includes/classes/class-event.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/easy-events-manager/includes/admin-templates/extensions.php:10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-events-manager/includes/classes/class-admin-attendees.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-events-manager/includes/classes/class-admin-attendees.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/easy-events-manager/includes/classes/class-admin-attendees.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/easy-events-manager/includes/admin-templates/publish-box-event.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-events-manager/includes/classes/class-hooks.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No tags were detected

easy-events-manager/easy-events-manager.php Passed 13 tests

The main PHP script in "Easy Events Manager" version 1.0.7 is automatically included on every request by WordPress
39 characters long description:
Manage Events super Easily on WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin10,993 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
CSS99431504,363
PHP421,4301,2444,235
SVG2012,158
JavaScript58630237

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity50.67
▷ Minimum class complexity1.00
▷ Maximum class complexity289.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods145
▷ Static methods21.38%
▷ Public methods13190.34%
▷ Protected methods00.00%
▷ Private methods149.66%
Functions56
▷ Named functions5394.64%
▷ Anonymous functions35.36%
Constants7
▷ Global constants7100.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.16MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/cta_bg.png163.29KB84.17KB▼ 48.45%