72% event-page-templates-addon-for-the-events-calendar

Code Review | Event Single Page Builder For The Event Calendar

WordPress plugin Event Single Page Builder For The Event Calendar scored72%from 54 tests.

About plugin

  • Plugin page: event-page-templa...
  • Plugin version: 1.6.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: May 31, 2019
  • Latest release: Dec 1, 2023
  • Number of updates: 49
  • Update frequency: every 33.6 days
  • Top authors: Narinder singh (97.96%)satindersingh (4.08%)

Code review

54 tests

User reviews

72 reviews

Install metrics

6,000+ active /74,410 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.60ms] Passed 4 tests

This is a short check of server-side resources used by Event Single Page Builder For The Event Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.64 ▼3.76
Dashboard /wp-admin3.31 ▼0.0446.16 ▼17.10
Posts /wp-admin/edit.php3.36 ▲0.0047.96 ▼0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.09 ▼7.57
Media Library /wp-admin/upload.php3.23 ▲0.0030.61 ▼1.95
Dashboard /wp-admin/admin.php?page=cool-plugins-events-addon3.0023.35
Single Event Template /wp-admin/edit.php?post_type=epta3.0425.53

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 147 new files
Database: no new tables, 9 new options
New WordPress options
tecset-installDate
widget_recent-posts
can_compress_scripts
widget_recent-comments
tecset-ratingDiv
theysaidso_admin_options
tecset-single-page-id
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Event Single Page Builder For The Event Calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲8914.38 ▲0.032.13 ▲0.4636.93 ▼7.54
Dashboard /wp-admin2,195 ▲185.61 ▲0.0895.43 ▲7.0943.39 ▲7.86
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0640.72 ▼0.4536.00 ▼1.05
Add New Post /wp-admin/post-new.php1,526 ▼923.07 ▲4.68614.59 ▼45.5152.04 ▼17.39
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0595.97 ▼3.9840.14 ▼3.58
Dashboard /wp-admin/admin.php?page=cool-plugins-events-addon280.410.094.01
Single Event Template /wp-admin/edit.php?post_type=epta280.410.093.73

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 detected upon uninstall: 9 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • tecset-single-page-id
    • widget_recent-posts
    • tecset-installDate
    • tecset-ratingDiv
    • widget_recent-comments

Smoke tests 25% 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 0% from 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
Please take a closer look at the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/event-page-templates-addon-for-the-events-calendar/epta-template/epta-template-1.php
    • > /wp-content/plugins/event-page-templates-addon-for-the-events-calendar/admin/events-addon-page/includes/cool_plugins_downloader.php
    • > /wp-content/plugins/event-page-templates-addon-for-the-events-calendar/epta-template/epta-template-2.php
  • 41× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/event-page-templates-addon-for-the-events-calendar/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/event-page-templates-addon-for-the-events-calendar/cmb2/includes/types/CMB2_Type_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/event-page-templates-addon-for-the-events-calendar/cmb2/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/event-page-templates-addon-for-the-events-calendar/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/event-page-templates-addon-for-the-events-calendar/cmb2/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/event-page-templates-addon-for-the-events-calendar/cmb2/includes/CMB2_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/event-page-templates-addon-for-the-events-calendar/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/event-page-templates-addon-for-the-events-calendar/cmb2/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/event-page-templates-addon-for-the-events-calendar/cmb2/includes/CMB2_Options_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/event-page-templates-addon-for-the-events-calendar/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=cool-plugins-events-addon
    • > Network (severe)
    wp-admin/admin.php?page=cool-plugins-events-addon - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=epta
    • > Network (severe)
    wp-admin/edit.php?post_type=epta - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 90% from 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
10 plugin tags: event calendar, events, event management, the events calendar, theeventscalendar...

event-page-templates-addon-for-the-events-calendar/the-events-calendar-event-details-page-templates.php 77% from 13 tests

The main PHP file in "Event Single Page Builder For The Event Calendar" ver. 1.6.9 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("event-page-templates-addon-for-the-events-calendar.php" instead of "the-events-calendar-event-details-page-templates.php")

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
No dangerous file extensions were detected17,428 lines of code in 120 files:
LanguageFilesBlank linesComment linesLines of code
PHP732,5046,6489,333
CSS223991,2736,075
JavaScript164596551,935
SVG965085

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity20.51
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes76
▷ Abstract classes911.84%
▷ Concrete classes6788.16%
▷ Final classes11.49%
Methods611
▷ Static methods9315.22%
▷ Public methods51484.12%
▷ Protected methods9014.73%
▷ Private methods71.15%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants743.75%
▷ Class constants956.25%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
16 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%