Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▲5.17ms] Passed 4 tests
This is a short check of server-side resources used by RSVP ME
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 47.50 ▲3.02 |
Dashboard /wp-admin | 3.57 ▲0.26 | 58.92 ▲4.58 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 59.92 ▲11.00 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 92.80 ▲3.92 |
Media Library /wp-admin/upload.php | 3.50 ▲0.26 | 46.02 ▲9.14 |
Add event /wp-admin/post-new.php?post_type=event | 3.62 | 65.57 |
Event tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=event | 3.49 | 51.51 |
All events /wp-admin/edit.php?post_type=event | 3.53 | 48.78 |
Event categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=event | 3.49 | 42.04 |
Server storage [IO: ▲0.78MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_rsvp_me_respondents |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_rsvp_me_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by RSVP ME
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,241 ▲480 | 14.77 ▲0.18 | 11.19 ▲9.44 | 39.17 ▼8.94 |
Dashboard /wp-admin | 2,287 ▲113 | 5.69 ▲0.09 | 95.81 ▼6.74 | 95.80 ▲52.51 |
Posts /wp-admin/edit.php | 2,194 ▲91 | 2.69 ▲0.71 | 46.43 ▲6.24 | 37.60 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,597 ▲69 | 24.26 ▲1.07 | 715.76 ▲46.47 | 41.10 ▼16.64 |
Media Library /wp-admin/upload.php | 1,495 ▲98 | 5.18 ▲1.00 | 110.56 ▲7.72 | 81.05 ▲35.94 |
Add event /wp-admin/post-new.php?post_type=event | 3,278 | 7.88 | 188.44 | 140.87 |
Event tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=event | 1,349 | 2.55 | 38.59 | 37.14 |
All events /wp-admin/edit.php?post_type=event | 1,199 | 2.58 | 42.17 | 33.66 |
Event categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=event | 1,377 | 2.55 | 36.99 | 37.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_rsvp_me_respondents
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_rsvp_me_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rsvp-me/rsvpme.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rsvp-me/admin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rsvp-me/archive-event.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rsvp-me/includes/rsvpme_events_post_type.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rsvp-me/includes/rsvpme_widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rsvp-me/includes/rsvpme_shortcodes.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rsvp-me/single-event.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=event_category&post_type=event
- > Javascript (severe) in unknown
/wp-content/plugins/rsvp-me/js/admin.js 94:27 Uncaught TypeError: $(...).wpColorPicker is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (![Admin Screen](screenshot-1.png "Admin Screenshot")), #2 (![Calendar Widget](screenshot-2.png "Calendar Widget"))
- Tags: You are using too many tags: 23 tag instead of maximum 10
rsvp-me/rsvpme.php 92% from 13 tests
The main PHP script in "RSVP ME" version 1.9.9 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rsvp-me.php" instead of "rsvpme.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
Good job! No executable or dangerous file extensions detected14,945 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 2,355 | 1,420 | 12,516 |
CSS | 3 | 84 | 57 | 1,262 |
PHP | 9 | 279 | 260 | 1,074 |
HTML | 3 | 13 | 0 | 93 |
PHP code Passed 2 tests
A brief analysis 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.35 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
23 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pen.png | 1.64KB | 0.81KB | ▼ 50.75% |
js/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/rsvp-me-logo-r.png | 12.16KB | 4.56KB | ▼ 62.50% |
images/calendar.png | 1.36KB | 0.54KB | ▼ 59.86% |
screenshot-2.png | 91.03KB | 33.15KB | ▼ 63.58% |