74% eventilla-events

Code Review | Eventilla Events

WordPress plugin Eventilla Events scored74%from 54 tests.

About plugin

  • Plugin page: eventilla-events
  • Plugin version: 1.7.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 10, 2019
  • Latest release: Oct 6, 2023
  • Number of updates: 98
  • Update frequency: every 15.5 days
  • Top authors: eventilla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,463 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.49ms] Passed 4 tests

A check of server-side resources used by Eventilla Events
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.17 ▼0.33
Dashboard /wp-admin3.44 ▲0.1448.08 ▼0.92
Posts /wp-admin/edit.php3.51 ▲0.1649.44 ▲0.66
Add New Post /wp-admin/post-new.php6.03 ▲0.1589.34 ▼9.37
Media Library /wp-admin/upload.php3.37 ▲0.1441.35 ▲6.62
Eventilla Settings /wp-admin/options-general.php?page=eventilla-wp3.3949.88

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Eventilla Events
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,992 ▲23120.97 ▲6.626.11 ▲4.6041.58 ▲0.95
Dashboard /wp-admin2,306 ▲12910.53 ▲4.96239.43 ▲148.3644.36 ▲5.03
Posts /wp-admin/edit.php2,213 ▲11310.47 ▲8.4688.03 ▲50.5837.02 ▲1.42
Add New Post /wp-admin/post-new.php6,225 ▲4,68918.74 ▲0.46807.81 ▲183.0139.60 ▼34.09
Media Library /wp-admin/upload.php1,535 ▲13511.08 ▲6.86157.02 ▲49.0146.58 ▲3.69
Eventilla Settings /wp-admin/options-general.php?page=eventilla-wp2,4349.40158.9272.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/eventilla-events/uninstall.php+44
    Trying to get property 'ID' of non-object
  • Zombie WordPress options detected upon uninstall: 9 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • eventilla_opt_batch_data
    • widget_recent-posts
    • eventilla_opt_is_deletion_is_still_in_progress
    • widget_theysaidso_widget
    • widget_recent-comments
    • eventilla_opt_previous_queue_value

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=eventilla-wp
    • > Javascript (severe) in unknown
    /wp-content/plugins/eventilla-events/admin/js/eventilla-wp-admin.js?ver=1.1.0 158:2 Uncaught ReferenceError: getPercent is not defined

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: event, events

eventilla-events/eventilla-wp.php 92% from 13 tests

"Eventilla Events" version 1.7.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("eventilla-events.php" instead of "eventilla-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,429 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP248212,0593,607
JavaScript469125393
CSS2611263
PO File15665159
Markdown1306
JSON1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.22
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods162
▷ Static methods2012.35%
▷ Public methods12979.63%
▷ Protected methods00.00%
▷ Private methods3320.37%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/css/logo_retina.png24.75KB10.22KB▼ 58.71%