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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.68 ▼0.78 | 8.22 ▼38.83 |
Dashboard /wp-admin | 2.75 ▼0.56 | 10.48 ▼42.05 |
Posts /wp-admin/edit.php | 2.75 ▼0.61 | 10.60 ▼37.46 |
Add New Post /wp-admin/post-new.php | 2.75 ▼3.14 | 10.96 ▼90.70 |
Media Library /wp-admin/upload.php | 2.75 ▼0.48 | 12.48 ▼22.13 |
Events /wp-admin/admin.php?page=ssv-events-settings | 2.75 | 11.77 |
General /wp-admin/admin.php?page=ssv_settings | 2.75 | 10.79 |
Add New /wp-admin/post-new.php?post_type=events | 2.75 | 12.18 |
Event Categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=events | 2.75 | 12.55 |
Events /wp-admin/edit.php?post_type=events | 2.75 | 11.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,003 ▲242 | 13.69 ▼0.69 | 5.88 ▲4.03 | 42.61 ▼3.16 |
Dashboard /wp-admin | 2,295 ▲89 | 5.07 ▼0.78 | 112.25 ▲4.88 | 46.56 ▲2.41 |
Posts /wp-admin/edit.php | 2,186 ▲86 | 2.47 ▲0.48 | 38.76 ▲0.75 | 38.21 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,593 ▲62 | 23.33 ▲0.09 | 684.95 ▲4.78 | 61.25 ▼0.57 |
Media Library /wp-admin/upload.php | 1,477 ▲80 | 4.36 ▲0.19 | 114.25 ▲12.05 | 49.37 ▼0.96 |
Events /wp-admin/admin.php?page=ssv-events-settings | 977 | 2.08 | 26.12 | 27.78 |
General /wp-admin/admin.php?page=ssv_settings | 937 | 2.11 | 26.75 | 29.85 |
Add New /wp-admin/post-new.php?post_type=events | 4,776 | 13.57 | 327.93 | 207.80 |
Event Categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=events | 1,361 | 2.05 | 31.48 | 31.84 |
Events /wp-admin/edit.php?post_type=events | 1,194 | 2.32 | 33.07 | 33.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 632 | 1,658 | 5,266 |
JavaScript | 5 | 311 | 301 | 3,835 |
CSS | 1 | 68 | 15 | 485 |
SVG | 1 | 0 | 1 | 12 |
Markdown | 1 | 0 | 0 | 2 |
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 code | 0.49 |
Average class complexity | 28.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 205 | |
▷ Static methods | 74 | 36.10% |
▷ Public methods | 172 | 83.90% |
▷ Protected methods | 28 | 13.66% |
▷ Private methods | 5 | 2.44% |
Functions | 39 | |
▷ Named functions | 32 | 82.05% |
▷ Anonymous functions | 7 | 17.95% |
Constants | 74 | |
▷ Global constants | 8 | 10.81% |
▷ Class constants | 66 | 89.19% |
▷ Public constants | 66 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
general/images/link-new-tab-small.png | 0.32KB | 0.39KB | 0.00% |
general/images/link-new-tab.png | 7.55KB | 4.53KB | ▼ 40.03% |