Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/events-rsvp/ersvp.php+33
Use of undefined constant ERSVP_PLUGIN_PATH - assumed 'ERSVP_PLUGIN_PATH' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.97MB] [CPU: ▼55.54ms] Passed 4 tests
This is a short check of server-side resources used by Events RSVP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.30 ▼33.45 |
Dashboard /wp-admin | 2.05 ▼1.30 | 9.73 ▼49.95 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.17 ▼41.88 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.14 ▼96.89 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.97 ▼27.48 |
Add New /wp-admin/post-new.php?post_type=ersvp-events | 2.05 | 5.51 |
Settings /wp-admin/edit.php?post_type=ersvp-events&page=ersvp-settings | 2.05 | 5.97 |
All Events /wp-admin/edit.php?post_type=ersvp-events | 2.05 | 5.25 |
Server storage [IO: ▲0.14MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_ersvp_widget |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Events RSVP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.38 ▲0.03 | 1.89 ▲0.32 | 44.65 ▲4.00 |
Dashboard /wp-admin | 2,220 ▲43 | 5.57 ▼0.09 | 87.47 ▲2.64 | 39.78 ▼2.95 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.95 ▼0.01 | 34.79 ▼0.39 | 31.32 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,554 ▲19 | 23.22 ▲4.90 | 596.64 ▼46.65 | 58.23 ▼5.33 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.23 ▲0.02 | 100.50 ▲6.42 | 44.15 ▲1.18 |
Add New /wp-admin/post-new.php?post_type=ersvp-events | 1,591 | 2.56 | 49.20 | 52.62 |
Settings /wp-admin/edit.php?post_type=ersvp-events&page=ersvp-settings | 876 | 2.00 | 22.09 | 26.57 |
All Events /wp-admin/edit.php?post_type=ersvp-events | 1,095 | 1.97 | 30.49 | 29.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/events-rsvp/ersvp.php+33
Use of undefined constant ERSVP_PLUGIN_PATH - assumed 'ERSVP_PLUGIN_PATH' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_ersvp_widget
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ersvp-events
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/events-rsvp/ersvp.php+33
Use of undefined constant ERSVP_PLUGIN_PATH - assumed 'ERSVP_PLUGIN_PATH' (this will throw an Error in a future version of PHP)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ersvp-events
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/events-rsvp/ersvp.php+34
Use of undefined constant ERSVP_PLUGIN_URL - assumed 'ERSVP_PLUGIN_URL' (this will throw an Error in a future version of PHP)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ersvp-events
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ersvp_widget is deprecated since version 4.3.0! Use __construct() instead.
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-rsvp/includes/ersvp-widgets.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: rsvp, event, form, events, organization
events-rsvp/ersvp.php 92% from 13 tests
The principal PHP file in "Events RSVP" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("events-rsvp.php" instead of "ersvp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin591 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 108 | 261 | 488 |
Markdown | 1 | 29 | 0 | 68 |
CSS | 1 | 5 | 0 | 35 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
back-end.png | 73.41KB | 32.30KB | ▼ 56.00% |
front-end.png | 15.85KB | 7.51KB | ▼ 52.62% |