10% ssv-events

Code Review | SSV Events

WordPress plugin SSV Events scored10%from 54 tests.

About plugin

  • Plugin page: ssv-events
  • Plugin version: 3.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: May 14, 2017
  • Latest release: Jun 1, 2017
  • Number of updates: 15
  • Update frequency: every 1.2 days
  • Top authors: Moridrin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /631 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/ssv-events/widgets/category-widget.php+144
    Function create_function() is deprecated

Server metrics [RAM: ▼1.27MB] [CPU: ▼52.26ms] Passed 4 tests

An overview of server-side resources used by SSV Events
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.68 ▼0.788.22 ▼38.83
Dashboard /wp-admin2.75 ▼0.5610.48 ▼42.05
Posts /wp-admin/edit.php2.75 ▼0.6110.60 ▼37.46
Add New Post /wp-admin/post-new.php2.75 ▼3.1410.96 ▼90.70
Media Library /wp-admin/upload.php2.75 ▼0.4812.48 ▼22.13
Events /wp-admin/admin.php?page=ssv-events-settings2.7511.77
General /wp-admin/admin.php?page=ssv_settings2.7510.79
Add New /wp-admin/post-new.php?post_type=events2.7512.18
Event Categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=events2.7512.55
Events /wp-admin/edit.php?post_type=events2.7511.03

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: 3 new tables, 13 new options
New tables
wp_ssv_event_registration_meta
wp_ssv_event_registration
wp_ssv_general_custom_fields
New WordPress options
ssv_events__email_registrant
ssv_events__email_author
ssv_events__registration_message
theysaidso_admin_options
ssv_events__cancellation_message
widget_recent-comments
widget_theysaidso_widget
widget_event_categories
widget_upcoming_events
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for SSV Events
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,003 ▲24213.69 ▼0.695.88 ▲4.0342.61 ▼3.16
Dashboard /wp-admin2,295 ▲895.07 ▼0.78112.25 ▲4.8846.56 ▲2.41
Posts /wp-admin/edit.php2,186 ▲862.47 ▲0.4838.76 ▲0.7538.21 ▲1.48
Add New Post /wp-admin/post-new.php1,593 ▲6223.33 ▲0.09684.95 ▲4.7861.25 ▼0.57
Media Library /wp-admin/upload.php1,477 ▲804.36 ▲0.19114.25 ▲12.0549.37 ▼0.96
Events /wp-admin/admin.php?page=ssv-events-settings9772.0826.1227.78
General /wp-admin/admin.php?page=ssv_settings9372.1126.7529.85
Add New /wp-admin/post-new.php?post_type=events4,77613.57327.93207.80
Event Categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=events1,3612.0531.4831.84
Events /wp-admin/edit.php?post_type=events1,1942.3233.0733.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ssv_events_maps handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie tables detected upon uninstall: 1 table
    • wp_ssv_general_custom_fields
  • The uninstall procedure has failed, leaving 13 options in the database
    • theysaidso_admin_options
    • ssv_events__registration_message
    • ssv_events__default_registration_status
    • can_compress_scripts
    • widget_recent-comments
    • ssv_events__cancellation_message
    • widget_event_categories
    • widget_upcoming_events
    • widget_theysaidso_widget
    • widget_recent-posts
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > POST request to /wp-admin/admin-ajax.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ssv_events_maps handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/ssv-events/widgets/upcoming-events-widget.php+139
    Function create_function() is deprecated

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mp_ssv_events\\plugin_dir_path() in wp-content/plugins/ssv-events/ssv-events.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=events
    • > Console-api (severe) in unknown
    https://maps.googleapis.com/maps/api/js?key=&libraries=places&callback=initMapSearch 153:248 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: event management, ssv, mp-ssv, moridrin, events...

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

The primary PHP file in "SSV Events" version 3.2.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 141 characters long)

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 detected9,600 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP366321,6585,266
JavaScript53113013,835
CSS16815485
SVG10112
Markdown1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity28.29
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes24
▷ Abstract classes14.17%
▷ Concrete classes2395.83%
▷ Final classes00.00%
Methods205
▷ Static methods7436.10%
▷ Public methods17283.90%
▷ Protected methods2813.66%
▷ Private methods52.44%
Functions39
▷ Named functions3282.05%
▷ Anonymous functions717.95%
Constants74
▷ Global constants810.81%
▷ Class constants6689.19%
▷ Public constants66100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
general/images/link-new-tab-small.png0.32KB0.39KB0.00%
general/images/link-new-tab.png7.55KB4.53KB▼ 40.03%