78% devllo-events

Code Review | Events by Devllo

WordPress plugin Events by Devllo scored78%from 54 tests.

About plugin

  • Plugin page: devllo-events
  • Plugin version: 1.0.4.3
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Aug 27, 2020
  • Latest release: Nov 2, 2022
  • Number of updates: 52
  • Update frequency: every 15.3 days
  • Top authors: devlloplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /5,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Events by Devllo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.13 ▼4.58
Dashboard /wp-admin3.44 ▲0.1053.46 ▼4.28
Posts /wp-admin/edit.php3.49 ▲0.1448.09 ▼1.75
Add New Post /wp-admin/post-new.php6.21 ▲0.3288.41 ▼5.65
Media Library /wp-admin/upload.php3.36 ▲0.1341.07 ▲6.80
Add Event /wp-admin/post-new.php?post_type=devllo_event6.2287.30
Event Categories /wp-admin/edit-tags.php?taxonomy=devllo_event_categories&post_type=devllo_event3.3534.90
Event Types /wp-admin/edit-tags.php?taxonomy=devllo_events_types&post_type=devllo_event3.3534.21
Add Ons /wp-admin/edit.php?post_type=devllo_event&page=devllo-events-addons3.3333.87
Event Tags /wp-admin/edit-tags.php?taxonomy=devllo_events_tags&post_type=devllo_event3.3533.41
Dashboard /wp-admin/edit.php?post_type=devllo_event&page=devllo-events-dashboard3.3333.52
Events /wp-admin/edit.php?post_type=devllo_event3.4136.68
Settings /wp-admin/edit.php?post_type=devllo_event&page=devllo-events-settings3.3332.83

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
devllo_events_current_version
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Events by Devllo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲19013.79 ▼0.5812.52 ▲10.9343.60 ▲4.40
Dashboard /wp-admin2,266 ▲865.64 ▼0.0595.50 ▲9.6242.52 ▲0.52
Posts /wp-admin/edit.php2,168 ▲682.02 ▲0.0634.39 ▼5.7832.78 ▼3.43
Add New Post /wp-admin/post-new.php1,580 ▲4923.05 ▼0.02695.48 ▲41.4556.27 ▲0.20
Media Library /wp-admin/upload.php1,468 ▲654.23 ▲0.03110.37 ▲5.7447.70 ▲2.54
Add Event /wp-admin/post-new.php?post_type=devllo_event6,70025.44929.9145.57
Event Categories /wp-admin/edit-tags.php?taxonomy=devllo_event_categories&post_type=devllo_event1,3392.1226.8430.28
Event Types /wp-admin/edit-tags.php?taxonomy=devllo_events_types&post_type=devllo_event1,3422.1226.1931.73
Add Ons /wp-admin/edit.php?post_type=devllo_event&page=devllo-events-addons1,0362.0023.7170.85
Event Tags /wp-admin/edit-tags.php?taxonomy=devllo_events_tags&post_type=devllo_event1,3172.1225.6328.40
Dashboard /wp-admin/edit.php?post_type=devllo_event&page=devllo-events-dashboard1,6404.3778.35112.29
Events /wp-admin/edit.php?post_type=devllo_event1,2041.9030.2129.26
Settings /wp-admin/edit.php?post_type=devllo_event&page=devllo-events-settings1,1402.0124.9436.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • devllo_events_current_version
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/devllo-events/templates/template-events.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/devllo-events/templates/calendar-event.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=devllo_event
    • > Javascript (severe) in unknown
    /wp-content/plugins/devllo-events/includes/assets/js/auto-complete.js?ver=6.3.1 12:6 Uncaught ReferenceError: google is not defined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Add Event Page showing Event fields.), #2 (Single Event Page.), #3 (Event Calendar Page.), #4 (Event List Page.), #5 (Events Page.), #6 (Admin Dashboard Page.)
The official readme.txt might help

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

The principal PHP file in "Events by Devllo" v. 1.0.4.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 223 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin68,893 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript126,8866,25451,820
CSS102,95717014,973
PHP165954371,934
PO File17278166

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity13.33
▷ Minimum class complexity2.00
▷ Maximum class complexity50.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods73
▷ Static methods1317.81%
▷ Public methods7298.63%
▷ Protected methods00.00%
▷ Private methods11.37%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 4.00MB with 2.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
screenshot-5.png857.89KB208.00KB▼ 75.75%
screenshot-4.png150.44KB31.14KB▼ 79.30%
screenshot-6.png300.82KB67.73KB▼ 77.48%
admin/assets/img/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%