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
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼0.76ms] Passed 4 tests
Analyzing server-side resources used by Spirit Events
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 45.05 ▲4.07 |
Dashboard /wp-admin | 3.48 ▲0.17 | 59.46 ▲2.66 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 53.70 ▼0.22 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 92.73 ▼6.50 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 39.70 ▲1.04 |
Add New /wp-admin/post-new.php?post_type=spirit-events | 6.15 | 89.60 |
Settings /wp-admin/edit.php?post_type=spirit-events&page=tssev_settings_page | 3.37 | 35.16 |
Events /wp-admin/edit.php?post_type=spirit-events | 3.45 | 38.09 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_spirit_event |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_spirit_events |
widget_theysaidso_widget |
theysaidso_admin_options |
tssev_options |
tssev_db_version |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Spirit Events
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲257 | 13.59 ▼0.60 | 1.96 ▼0.01 | 42.55 ▼3.16 |
Dashboard /wp-admin | 2,416 ▲210 | 5.17 ▲0.29 | 114.46 ▼0.55 | 42.43 ▼0.01 |
Posts /wp-admin/edit.php | 2,300 ▲197 | 2.40 ▲0.34 | 36.34 ▼3.51 | 30.01 ▼6.38 |
Add New Post /wp-admin/post-new.php | 1,580 ▲54 | 23.28 ▲5.56 | 671.59 ▼21.56 | 39.43 ▼18.77 |
Media Library /wp-admin/upload.php | 1,592 ▲192 | 4.52 ▲0.35 | 104.29 ▼16.60 | 42.45 ▼7.62 |
Add New /wp-admin/post-new.php?post_type=spirit-events | 6,980 | 20.51 | 931.12 | 40.12 |
Settings /wp-admin/edit.php?post_type=spirit-events&page=tssev_settings_page | 1,519 | 2.74 | 63.72 | 30.59 |
Events /wp-admin/edit.php?post_type=spirit-events | 1,257 | 2.38 | 34.66 | 27.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- tssev_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_spirit_events
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/spirit-events/spirit-events.php
- > /wp-content/plugins/spirit-events/includes/functions.php
- > /wp-content/plugins/spirit-events/admin/admin.php
- > /wp-content/plugins/spirit-events/templates/settings-page.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spirit-events/includes/metabox.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spirit-events/includes/widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/spirit-events/templates/single-spirit-events.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spirit-events/includes/post-type.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/spirit-events/templates/archive-spirit-events.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Donate link: Please fix this invalid URI: ""
spirit-events/spirit-events.php Passed 13 tests
The entry point to "Spirit Events" version 1.0.1 is a PHP file that has certain tags in its header comment area
50 characters long description:
Simple event calendar plugin with Gutenberg block.
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 plugin5,229 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 558 | 179 | 3,305 |
CSS | 4 | 84 | 20 | 1,052 |
PHP | 12 | 203 | 160 | 736 |
PO File | 1 | 53 | 55 | 136 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 58.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 41.67% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/calendar2black.png | 0.73KB | 0.55KB | ▼ 23.55% |
src/arrow-right.png | 0.48KB | 0.30KB | ▼ 37.78% |
src/calendar2.png | 1.35KB | 0.65KB | ▼ 51.81% |
src/map-pin-black.png | 0.44KB | 0.48KB | 0.00% |
src/arrow-left.png | 1.21KB | 0.29KB | ▼ 75.63% |