Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.23MB] [CPU: ▼11.10ms] Passed 4 tests
This is a short check of server-side resources used by Blocks for Eventbrite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.65 ▼6.30 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.56 ▼5.27 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 52.55 ▲3.80 |
Add New Post /wp-admin/post-new.php | 4.83 ▼1.05 | 57.51 ▼33.65 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.69 ▲0.83 |
Server storage [IO: ▲4.79MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Blocks for Eventbrite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.75 ▼0.65 | 4.59 ▲2.74 | 44.50 ▼0.79 |
Dashboard /wp-admin | 2,203 ▲15 | 5.79 ▼0.10 | 99.36 ▼16.52 | 38.95 ▼2.67 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.02 | 38.67 ▲2.33 | 36.02 ▲2.59 |
Add New Post /wp-admin/post-new.php | 6,371 ▲4,852 | 24.97 ▲1.53 | 871.62 ▲188.65 | 58.81 ▲5.79 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.16 ▼0.03 | 96.52 ▼5.68 | 41.03 ▼3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
3 plugin tags: eventbrite, events, block
blocks-for-eventbrite/blocks-for-eventbrite.php Passed 13 tests
The main PHP script in "Blocks for Eventbrite" version 1.1.2 is automatically included on every request by WordPress
47 characters long description:
Gutenberg blocks that display eventbrite events
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,227 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 38 | 68 | 1,052 |
PHP | 3 | 35 | 79 | 170 |
CSS | 2 | 1 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 33.33% |
▷ Protected methods | 4 | 66.67% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/screenshot-1.png | 89.08KB | 22.28KB | ▼ 74.99% |