Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.67MB] [CPU: ▲4.88ms] Passed 4 tests
This is a short check of server-side resources used by Registrations for the Events Calendar - Event Registration Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.46 ▲0.99 | 42.91 ▼0.83 |
Dashboard /wp-admin | 5.25 ▲1.91 | 63.32 ▼0.32 |
Posts /wp-admin/edit.php | 5.31 ▲1.95 | 71.08 ▲19.27 |
Add New Post /wp-admin/post-new.php | 7.79 ▲1.90 | 100.91 ▲1.39 |
Media Library /wp-admin/upload.php | 5.12 ▲1.88 | 54.54 ▲20.17 |
Email Settings /wp-admin/admin.php?page=rtec-email | 5.16 | 50.48 |
Registrations /wp-admin/edit.php?post_type=tribe_events&page=registrations-for-the-events-calendar/_settings | 4.80 | 42.41 |
Registrations /wp-admin/admin.php?page=registrations-for-the-events-calendar | 5.16 | 48.32 |
Form Settings /wp-admin/admin.php?page=rtec-form | 5.16 | 47.85 |
Support /wp-admin/admin.php?page=rtec-support | 5.16 | 48.61 |
Server storage [IO: ▲3.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 115 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_rtec_registrations |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
rtec_options |
widget_theysaidso_widget |
rtec_db_version |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Registrations for the Events Calendar - Event Registration Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲167 | 13.85 ▼0.50 | 7.41 ▲5.63 | 40.20 ▼6.62 |
Dashboard /wp-admin | 2,227 ▲50 | 5.62 ▼0.02 | 97.69 ▲7.88 | 39.27 ▼0.82 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.01 ▲0.06 | 40.27 ▲3.79 | 35.89 ▲2.89 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.52 ▲0.49 | 669.41 ▲26.38 | 59.61 ▲5.43 |
Media Library /wp-admin/upload.php | 1,435 ▲41 | 4.23 ▲0.06 | 97.62 ▲1.08 | 41.15 ▼0.52 |
Email Settings /wp-admin/admin.php?page=rtec-email | 871 | 2.05 | 24.29 | 26.95 |
Registrations /wp-admin/edit.php?post_type=tribe_events&page=registrations-for-the-events-calendar/_settings | 28 | 0.41 | 0.11 | 3.95 |
Registrations /wp-admin/admin.php?page=registrations-for-the-events-calendar | 871 | 2.05 | 25.85 | 27.34 |
Form Settings /wp-admin/admin.php?page=rtec-form | 865 | 2.05 | 23.77 | 29.29 |
Support /wp-admin/admin.php?page=rtec-support | 865 | 2.05 | 26.11 | 28.15 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 24× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/registrations-for-the-events-calendar/inc/admin/class-rtec-admin-registrations.php
- > /wp-content/plugins/registrations-for-the-events-calendar/inc/admin/class-rtec-admin-event.php
- > /wp-content/plugins/registrations-for-the-events-calendar/inc/form/class-rtec-form.php
- > /wp-content/plugins/registrations-for-the-events-calendar/inc/admin/templates/registrations.php
- > /wp-content/plugins/registrations-for-the-events-calendar/templates/email/button-generic.php
- > /wp-content/plugins/registrations-for-the-events-calendar/inc/class-rtec-db.php
- > /wp-content/plugins/registrations-for-the-events-calendar/inc/class-rtec-validator.php
- > /wp-content/plugins/registrations-for-the-events-calendar/inc/services/class-rtec-placeholder-service.php
- > /wp-content/plugins/registrations-for-the-events-calendar/inc/helper-functions.php
- > /wp-content/plugins/registrations-for-the-events-calendar/inc/class-rtec-email.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'RTEC\\Helpers\\PluginSilentUpgraderSkin' not found in wp-content/plugins/registrations-for-the-events-calendar/inc/admin/class-install-skin.php:11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/registrations-for-the-events-calendar/inc/helpers/PluginSilentUpgrader.php on line 10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/registrations-for-the-events-calendar/inc/helpers/PluginSilentUpgraderSkin.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader-skin.php' (include_path='.:/usr/share/php') in wp-content/plugins/registrations-for-the-events-calendar/inc/helpers/PluginSilentUpgraderSkin.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/registrations-for-the-events-calendar/inc/helpers/PluginSilentUpgrader.php on line 10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader-skin.php): failed to open stream: No such file or directory in wp-content/plugins/registrations-for-the-events-calendar/inc/helpers/PluginSilentUpgraderSkin.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/registrations-for-the-events-calendar/inc/admin/admin-functions.php:70
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/registrations-for-the-events-calendar/inc/helpers/PluginSilentUpgrader.php on line 10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?post_type=tribe_events&page=registrations-for-the-events-calendar/_settings
- > Network (severe)
wp-admin/edit.php?post_type=tribe_events&page=registrations-for-the-events-calendar/_settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: rsvp, the events calendar, registration, event registration, events
registrations-for-the-events-calendar/registrations-for-the-events-calendar.php 92% from 13 tests
This is the main PHP file of "Registrations for the Events Calendar - Event Registration Plugin" version 2.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin29,400 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 6,351 | 8,629 | 14,298 |
PHP | 55 | 2,133 | 1,980 | 11,488 |
CSS | 4 | 79 | 81 | 2,003 |
JavaScript | 7 | 241 | 114 | 1,595 |
SVG | 1 | 0 | 0 | 9 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 43.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 1 | 4.00% |
Methods | 273 | |
▷ Static methods | 25 | 9.16% |
▷ Public methods | 250 | 91.58% |
▷ Protected methods | 13 | 4.76% |
▷ Private methods | 10 | 3.66% |
Functions | 107 | |
▷ Named functions | 107 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 12 | 85.71% |
▷ Class constants | 2 | 14.29% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 1.28MB with 0.79MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/admin/pro-features/email-selected.png | 115.53KB | 39.70KB | ▼ 65.64% |
img/tec-icon.png | 11.94KB | 6.96KB | ▼ 41.71% |
img/admin/pro-features/transfer-selected.png | 203.73KB | 56.24KB | ▼ 72.39% |
img/admin/pro-features/payments.png | 209.58KB | 54.73KB | ▼ 73.89% |
img/form-gb-block.png | 5.08KB | 2.28KB | ▼ 55.14% |