83% events-maker

Code Review | Events Maker by dFactory

WordPress plugin Events Maker by dFactory scored 83% from 54 tests.

About plugin

  • Plugin page: events-maker
  • Plugin version: 1.6.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2013
  • Latest release: Jan 31, 2017
  • Number of updates: 146
  • Update frequency: every 8.5 days
  • Top authors: dfactory (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

1,000+ active / 79,664 total downloads

Benchmarks

Plugin footprint 83% 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: ▲2.12MB] [CPU: ▲16.25ms] Passed 4 tests

A check of server-side resources used by Events Maker by dFactory
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.14 ▲1.6847.86 ▲9.95
Dashboard /wp-admin5.62 ▲2.3264.36 ▲17.00
Posts /wp-admin/edit.php5.83 ▲2.4867.57 ▲19.11
Add New Post /wp-admin/post-new.php8.14 ▲2.25117.04 ▲20.11
Media Library /wp-admin/upload.php5.47 ▲2.2453.64 ▲18.94
Settings /wp-admin/edit.php?post_type=event&page=events-settings5.4444.06
All Events /wp-admin/edit.php?post_type=event5.7552.43
Categories /wp-admin/edit-tags.php?taxonomy=event-category&post_type=event5.5048.57
Organizers /wp-admin/edit-tags.php?taxonomy=event-organizer&post_type=event5.5047.19
Tags /wp-admin/edit-tags.php?taxonomy=event-tag&post_type=event5.5047.02
Welcome to Events Maker /wp-admin/index.php?page=events-maker-about5.4343.75
Add New /wp-admin/post-new.php?post_type=event5.6977.84
Locations /wp-admin/edit-tags.php?taxonomy=event-location&post_type=event5.5151.45

Server storage [IO: ▲1.64MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 213 new files
Database: no new tables, 13 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_events_maker_list_widget
widget_theysaidso_widget
can_compress_scripts
widget_events_maker_categories_widget
widget_events_maker_organizers_widget
widget_events_maker_archive_widget
widget_recent-posts
widget_events_maker_locations_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by Events Maker by dFactory
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲21413.53 ▼1.227.35 ▲5.7438.68 ▼5.28
Dashboard /wp-admin2,266 ▲815.84 ▲0.78120.82 ▼17.0255.01 ▲3.92
Posts /wp-admin/edit.php2,151 ▲622.00 ▼0.0239.56 ▼1.2737.02 ▲1.12
Add New Post /wp-admin/post-new.php1,587 ▲7323.42 ▲5.88680.49 ▲83.1356.55 ▲4.87
Media Library /wp-admin/upload.php1,448 ▲574.24 ▲0.0398.19 ▼8.3740.73 ▼2.32
Settings /wp-admin/edit.php?post_type=event&page=events-settings1,5781.8427.4558.84
All Events /wp-admin/edit.php?post_type=event1,3082.3841.0231.90
Categories /wp-admin/edit-tags.php?taxonomy=event-category&post_type=event1,8425.99113.9157.71
Organizers /wp-admin/edit-tags.php?taxonomy=event-organizer&post_type=event1,8895.96109.6751.22
Tags /wp-admin/edit-tags.php?taxonomy=event-tag&post_type=event1,7975.96110.0448.89
Welcome to Events Maker /wp-admin/index.php?page=events-maker-about9802.1724.7642.30
Add New /wp-admin/post-new.php?post_type=event4,1448.05197.5163.46
Locations /wp-admin/edit-tags.php?taxonomy=event-location&post_type=event2,8835.86109.5353.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_events_maker_categories_widget
    • theysaidso_admin_options
    • widget_events_maker_list_widget
    • widget_events_maker_archive_widget
    • widget_events_maker_search_widget
    • widget_events_maker_organizers_widget
    • widget_recent-comments
    • widget_events_maker_calendar_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/events-maker/includes/template-hooks.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

events-maker/events-maker.php 92% from 13 tests

This is the main PHP file of "Events Maker by dFactory" version 1.6.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin15,768 lines of code in 178 files:
LanguageFilesBlank linesComment linesLines of code
PHP592,6862,6149,403
JavaScript1094365003,652
CSS84662452,651
Markdown19037
XML10025

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 123)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity56.07
▷ Minimum class complexity1.00
▷ Maximum class complexity231.00
Average method complexity6.90
▷ Minimum method complexity1.00
▷ Maximum method complexity123.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes13.70%
Methods252
▷ Static methods20.79%
▷ Public methods22890.48%
▷ Protected methods00.00%
▷ Private methods249.52%
Functions83
▷ Named functions83100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
24 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/fullcalendar/lib/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png0.36KB0.14KB▼ 60.65%
assets/fullcalendar/lib/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png0.25KB0.08KB▼ 66.67%
css/images/bg_fallback.png3.63KB0.30KB▼ 91.72%
assets/fullcalendar/lib/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png0.42KB0.18KB▼ 57.28%
assets/fullcalendar/lib/cupertino/images/ui-icons_3d80b3_256x240.png4.49KB4.18KB▼ 6.89%