84% events-made-easy-frontend-submit

Code Review | Events Made Easy Frontend Submit

WordPress plugin Events Made Easy Frontend Submit scored84%from 54 tests.

About plugin

  • Plugin page: events-made-easy-...
  • Plugin version: 1.0.79
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2014
  • Latest release: Nov 11, 2023
  • Number of updates: 337
  • Update frequency: every 10.0 days
  • Top authors: liedekef (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /31,197 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.14MB] [CPU: ▼11.57ms] Passed 4 tests

Analyzing server-side resources used by Events Made Easy Frontend Submit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1535.48 ▼9.09
Dashboard /wp-admin3.46 ▲0.1145.38 ▼16.33
Posts /wp-admin/edit.php3.57 ▲0.2149.75 ▲0.80
Add New Post /wp-admin/post-new.php6.04 ▲0.1580.81 ▼18.22
Media Library /wp-admin/upload.php3.38 ▲0.1534.23 ▼2.62

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Events Made Easy Frontend Submit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3114.67 ▲0.581.81 ▲0.0342.43 ▼0.74
Dashboard /wp-admin2,201 ▲215.61 ▼0.0588.15 ▼0.0042.53 ▼0.03
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0241.34 ▼1.9636.29 ▲1.35
Add New Post /wp-admin/post-new.php1,533 ▲723.29 ▲0.14616.01 ▼80.8355.69 ▲1.32
Media Library /wp-admin/upload.php1,400 ▲64.20 ▲0.0097.48 ▼5.7841.01 ▼0.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/events-made-easy-frontend-submit/emefs.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/events-made-easy-frontend-submit/templates/form.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: events, frontend

events-made-easy-frontend-submit/emefs.php 92% from 13 tests

"Events Made Easy Frontend Submit" version 1.0.79's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("events-made-easy-frontend-submit.php" instead of "emefs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,447 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP31471411,056
JavaScript12110283
CSS2182108

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity107.50
▷ Minimum class complexity6.00
▷ Maximum class complexity209.00
Average method complexity5.95
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods43
▷ Static methods2148.84%
▷ Public methods4093.02%
▷ Protected methods36.98%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin