78% event-o-matic

Code Review | Event-O-Matic

WordPress plugin Event-O-Matic scored78%from 54 tests.

About plugin

  • Plugin page: event-o-matic
  • Plugin version: 6.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 16, 2011
  • Latest release: Mar 3, 2018
  • Number of updates: 119
  • Update frequency: every 21.9 days
  • Top authors: mjgarvi (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /19,689 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.35MB] [CPU: ▼3.46ms] Passed 4 tests

Server-side resources used by Event-O-Matic
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3744.93 ▲2.06
Dashboard /wp-admin3.64 ▲0.3451.28 ▼2.67
Posts /wp-admin/edit.php3.77 ▲0.4146.56 ▼5.77
Add New Post /wp-admin/post-new.php6.22 ▲0.3486.37 ▼5.09
Media Library /wp-admin/upload.php3.57 ▲0.3439.67 ▼0.32
All Places /wp-admin/edit.php?post_type=eom-place3.6240.22
Categories /wp-admin/edit-tags.php?taxonomy=eom-event-cats&post_type=eom-event3.5636.29
Add New Place /wp-admin/post-new.php?post_type=eom-place3.6954.14
All Events /wp-admin/edit.php?post_type=eom-event3.6241.73
Add New Event /wp-admin/post-new.php?post_type=eom-event3.7951.73
Event-O-Matic /wp-admin/options-general.php?page=eom3.5136.43

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_eom_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Event-O-Matic
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲19913.78 ▼0.147.07 ▲4.9643.15 ▼0.26
Dashboard /wp-admin2,275 ▲875.88 ▲1.00103.45 ▼15.5239.33 ▼8.02
Posts /wp-admin/edit.php2,161 ▲752.10 ▲0.0734.58 ▼1.5233.76 ▼1.29
Add New Post /wp-admin/post-new.php1,574 ▲6020.99 ▲3.49682.90 ▼14.3654.36 ▲2.42
Media Library /wp-admin/upload.php1,460 ▲724.31 ▲0.14108.69 ▲4.1549.83 ▲4.28
All Places /wp-admin/edit.php?post_type=eom-place1,1332.0533.7531.25
Categories /wp-admin/edit-tags.php?taxonomy=eom-event-cats&post_type=eom-event1,3402.3829.3029.91
Add New Place /wp-admin/post-new.php?post_type=eom-place2,3017.77174.3265.67
All Events /wp-admin/edit.php?post_type=eom-event1,1952.0632.6433.12
Add New Event /wp-admin/post-new.php?post_type=eom-event2,8697.86187.3957.65
Event-O-Matic /wp-admin/options-general.php?page=eom1,0491.8527.4427.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_eom_widget
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=eom
    • > Notice in wp-content/plugins/event-o-matic/event-o-matic.php+953
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/event-o-matic/event-o-matic.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/event-o-matic/widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

event-o-matic/event-o-matic.php 92% from 13 tests

Analyzing the main PHP file in "Event-O-Matic" version 6.0.1
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,262 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22363691,027
PO File16771154
CSS2174281

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin