88% easyevent

Code Review | EasyEvent

WordPress plugin EasyEvent scored 88% from 53 tests.

About plugin

  • Plugin page: easyevent
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 5.8.1
  • First release: May 17, 2017
  • Latest release: Mar 18, 2018
  • Number of updates: 11
  • Update frequency: every 27.8 days
  • Top authors: dwalliance (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 1,041 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼277.04ms] Passed 4 tests

Server-side resources used by EasyEvent
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1837.67 ▲16.76
Dashboard /wp-admin3.13 ▲0.0851.96 ▲7.70
Posts /wp-admin/edit.php3.24 ▲0.1343.31 ▼3.80
Add New Post /wp-admin/post-new.php5.49 ▲0.0693.76 ▼1,107.76
Media Library /wp-admin/upload.php3.07 ▲0.0634.97 ▼4.31
EasyEvent /wp-admin/options-general.php?page=easyevent3.0428.61

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for EasyEvent
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,820 ▲21416.73 ▲1.1611.78 ▲1.1047.94 ▼0.53
Dashboard /wp-admin3,007 ▲1576.19 ▲0.38132.62 ▲0.24109.31 ▼1.02
Posts /wp-admin/edit.php2,715 ▲92.70 ▲0.0267.68 ▲2.6590.35 ▼0.73
Add New Post /wp-admin/post-new.php1,860 ▲27219.18 ▼2.17367.40 ▲103.51109.18 ▲3.02
Media Library /wp-admin/upload.php1,722 ▼475.01 ▲0.03139.01 ▼15.65114.55 ▼1.80
EasyEvent /wp-admin/options-general.php?page=easyevent1,0362.3257.2872.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/easyevent/public/partials/easyevent-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/easyevent/admin/partials/easyevent-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === easyevent === )
You can take inspiration from this readme.txt

easyevent/easyevent.php Passed 13 tests

The primary PHP file in "EasyEvent" version 1.0.0 is used by WordPress to initiate all plugin functionality
102 characters long description:
EasyEvent makes your event planning life much easier. Select settings / EasyEvent for setup and usage.

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
Good job! No executable or dangerous file extensions detected1,138 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected