74% wp-eventpress

Code Review | EventPress

WordPress plugin EventPress scored74%from 54 tests.

About plugin

  • Plugin page: wp-eventpress
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Jul 24, 2015
  • Latest release: Jul 26, 2015
  • Number of updates: 3
  • Update frequency: every 21.7 days
  • Top authors: duogeek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,494 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▲2.34ms] Passed 4 tests

An overview of server-side resources used by EventPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4352.03 ▲9.49
Dashboard /wp-admin3.78 ▲0.4755.63 ▲3.64
Posts /wp-admin/edit.php3.83 ▲0.4859.04 ▲7.60
Add New Post /wp-admin/post-new.php6.32 ▲0.4497.97 ▼11.37
Media Library /wp-admin/upload.php3.64 ▲0.4150.71 ▲13.42
All Events /wp-admin/edit.php?post_type=ep_events3.6944.06
Add New /wp-admin/post-new.php?post_type=ep_events3.8661.73
Event Settings /wp-admin/edit.php?post_type=ep_events&page=event-settings3.6137.92
Categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=ep_events3.6339.40
Tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=ep_events3.6344.49

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 68 new files
Database: 1 new table, 7 new options
New tables
wp_ep_events_rsvp
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
jal_db_version
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by EventPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,982 ▲23614.10 ▼0.106.11 ▲3.9342.86 ▲3.84
Dashboard /wp-admin2,276 ▲945.42 ▼0.47106.01 ▲1.0987.23 ▲45.99
Posts /wp-admin/edit.php2,186 ▲942.55 ▲0.5145.53 ▲3.5148.02 ▲12.72
Add New Post /wp-admin/post-new.php1,747 ▲22823.01 ▲0.00751.71 ▲67.6235.72 ▼18.91
Media Library /wp-admin/upload.php1,464 ▲764.71 ▲0.48104.71 ▼3.9681.98 ▲32.98
All Events /wp-admin/edit.php?post_type=ep_events1,1972.1938.7151.03
Add New /wp-admin/post-new.php?post_type=ep_events3,2467.93202.03142.18
Event Settings /wp-admin/edit.php?post_type=ep_events&page=event-settings1,0952.3748.8430.08
Categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=ep_events1,3582.2931.9033.38
Tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=ep_events1,3272.4231.3032.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_ep_events_rsvp
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • jal_db_version
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 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/wp-eventpress/eventpress-files/templates/single-ep-event.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-eventpress/eventpress-files/lib/addons/ep-tickets.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-eventpress/eventpress-files/templates/monthly-calendar-ep-event.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-eventpress/wp-eventpress.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-eventpress/eventpress-files/templates/archive-ep-event.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-eventpress/eventpress-files/classes/class.event.addon.handler.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-eventpress/eventpress-files/lib/addons/ep-gmap.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-eventpress/eventpress-files/classes/class.event.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-eventpress/eventpress-files/classes/class.event.template.handler.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-eventpress/eventpress-files/lib/functions.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: simple event manager, event calendar, events manager, events management, wordpress events...

wp-eventpress/wp-eventpress.php Passed 13 tests

The main PHP script in "EventPress" version 1.0.0 is automatically included on every request by WordPress
123 characters long description:
Very easy and powerful plugin to use and user friendly best event manager plugin for WordPress with lots of useful options.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin16,358 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
CSS10215248,965
JavaScript83295542,202
PHP126411,2861,931
Sass1326241,352
LESS1326331,343
SVG100565

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity26.14
▷ Minimum class complexity4.00
▷ Maximum class complexity113.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods82
▷ Static methods1315.85%
▷ Public methods7692.68%
▷ Protected methods00.00%
▷ Private methods67.32%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants880.00%
▷ Class constants220.00%
▷ Public constants2100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
eventpress-files/assets/images/eventpress-20-20.png1.37KB0.75KB▼ 45.35%