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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.12ms] Passed 4 tests
This is a short check of server-side resources used by The Events Calendar Gravity Forms Registration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.00 ▼0.72 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.14 ▲1.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.59 ▼2.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.26 ▼2.62 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.92 ▲1.13 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for The Events Calendar Gravity Forms Registration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.49 | 1.69 ▼0.06 | 41.49 ▼0.95 |
Dashboard /wp-admin | 2,206 ▲18 | 4.89 ▼0.98 | 108.14 ▲4.43 | 42.26 ▼5.04 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.01 | 38.87 ▲2.55 | 35.23 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.30 ▲0.01 | 574.66 ▼103.23 | 50.31 ▼7.44 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.22 ▲0.01 | 96.07 ▼5.82 | 40.57 ▼3.79 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/the-events-calendar-registration/trunk/ecgf.php:507
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/the-events-calendar-registration/ecgf.php:507
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== the-events-calendar-registration ===
)
the-events-calendar-registration/ecgf.php 92% from 13 tests
The main PHP script in "The Events Calendar Gravity Forms Registration" version 1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("the-events-calendar-registration.php" instead of "ecgf.php")
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
Good job! No executable or dangerous file extensions detected607 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 84 | 72 | 590 |
Markdown | 1 | 6 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 20 | 58.82% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 48.84KB | 17.50KB | ▼ 64.17% |
trunk/assets/screenshot-2.png | 21.77KB | 6.21KB | ▼ 71.48% |
trunk/assets/screenshot-3.png | 48.84KB | 17.50KB | ▼ 64.17% |
assets/screenshot-2.png | 21.77KB | 6.21KB | ▼ 71.48% |
assets/screenshot-1.png | 14.89KB | 4.34KB | ▼ 70.85% |