66% event-master

Code Review | Event Master Plugin

WordPress plugin Event Master Plugin scored66%from 54 tests.

About plugin

  • Plugin page: event-master
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2018
  • Latest release: Apr 7, 2018
  • Number of updates: 3
  • Update frequency: every 5.3 days
  • Top authors: dreamfox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /839 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
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.84ms] Passed 4 tests

Analyzing server-side resources used by Event Master Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1737.94 ▼10.53
Dashboard /wp-admin3.46 ▲0.1650.91 ▼6.00
Posts /wp-admin/edit.php3.57 ▲0.2254.63 ▲4.00
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.39 ▼6.36
Media Library /wp-admin/upload.php3.38 ▲0.1536.93 ▼0.45
Category /wp-admin/edit-tags.php?taxonomy=softsdev_event_category&post_type=softsdev_events3.5036.52
Tags /wp-admin/edit-tags.php?taxonomy=softsdev_event_tags&post_type=softsdev_events3.5036.06
Add New Event /wp-admin/post-new.php?post_type=softsdev_events3.5349.52
Event Master /wp-admin/edit.php?post_type=softsdev_events3.4644.00

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 134 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Event Master Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18513.95 ▼0.5813.61 ▲11.7939.95 ▼3.62
Dashboard /wp-admin2,227 ▲475.58 ▼0.0783.05 ▼6.0638.26 ▼1.47
Posts /wp-admin/edit.php2,135 ▲381.98 ▼0.0236.24 ▼1.2133.17 ▼0.04
Add New Post /wp-admin/post-new.php1,555 ▲2723.18 ▼0.03667.33 ▼16.2864.34 ▲8.30
Media Library /wp-admin/upload.php1,435 ▲354.19 ▼0.0193.80 ▼8.9641.95 ▼4.35
Category /wp-admin/edit-tags.php?taxonomy=softsdev_event_category&post_type=softsdev_events1,3092.1228.1929.28
Tags /wp-admin/edit-tags.php?taxonomy=softsdev_event_tags&post_type=softsdev_events1,2812.2427.6529.99
Add New Event /wp-admin/post-new.php?post_type=softsdev_events5,7409.85261.9080.18
Event Master /wp-admin/edit.php?post_type=softsdev_events1,3414.3784.8671.76

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 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-general_info.php+39
    Undefined variable: event_color
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-event_timing.php+15
    Undefined variable: event_type
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-event_address.php+10
    Undefined variable: title
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-event_address.php+17
    Undefined variable: address_1
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-event_address.php+23
    Undefined variable: address_2
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-event_address.php+29
    Undefined variable: city
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-event_address.php+35
    Undefined variable: state
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-event_address.php+41
    Undefined variable: zip
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-event_address.php+47
    Undefined variable: country
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-event_address.php+56
    Undefined variable: contact_number
    • > GET request to /wp-admin/post-new.php?post_type=softsdev_events
    • > Notice in wp-content/plugins/event-master/templates/admin/tab-event_address.php+63
    Undefined variable: contact_email

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/event-master/templates/admin/tab-registered_users.php
    • > /wp-content/plugins/event-master/fullcalendar-2.3.2/demos/php/get-events.php
    • > /wp-content/plugins/event-master/fullcalendar-2.3.2/demos/php/get-timezones.php
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/event-master/event-master.php:18
    • > PHP Notice
      Undefined variable: gallery in wp-content/plugins/event-master/templates/admin/mb-event_images.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_attachment_image() in wp-content/plugins/event-master/templates/admin/mb-event_images.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/event-master/templates/admin/tab-event_char_n_disc.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/event-master/softsdev-event-master-content.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/event-master/templates/archive-softsdev_events.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/event-master/softsdev-event-master-post-type.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/event-master/templates/admin/tab-general_info.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/event-master/templates/admin/tab-event_timing.php:7
    • > PHP Notice
      Undefined variable: gallery in wp-content/plugins/event-master/templates/admin/mb-event_images.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=softsdev_events
    • > Console-api (warning) in unknown
    https://maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyCLL1uo4yKXTu8cJTA6kdkKZB7vhzjcK6Q&ver=6.3.1 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (screenshot1), #2 (screenshot2), #3 (screenshot3)
You can take inspiration from this readme.txt

event-master/event-master.php 85% from 13 tests

This is the main PHP file of "Event Master Plugin" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin16,895 lines of code in 98 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript614,3182,25312,364
CSS104892452,304
PHP151754721,112
HTML1114501,059
JSON10056

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity11.20
▷ Minimum class complexity4.00
▷ Maximum class complexity24.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods40
▷ Static methods1230.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
23 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/help.png0.30KB0.32KB0.00%
fullcalendar-2.3.2/lib/cupertino/images/ui-icons_2694e8_256x240.png4.49KB4.18KB▼ 6.89%
images/events-icon.png1.50KB0.60KB▼ 59.78%
fullcalendar-2.3.2/lib/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png0.25KB0.08KB▼ 66.67%
images/missing-image.png18.64KB10.57KB▼ 43.31%