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
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼6.59ms] Passed 4 tests
Analyzing server-side resources used by Event Codes - Shortcodes that work with other event plugins
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 39.67 ▼3.04 |
Dashboard /wp-admin | 3.56 ▲0.21 | 47.52 ▼16.53 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 47.57 ▼0.19 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 89.31 ▼6.60 |
Media Library /wp-admin/upload.php | 3.42 ▲0.18 | 34.74 ▲1.87 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Event Codes - Shortcodes that work with other event plugins: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲150 | 13.63 ▼0.66 | 5.05 ▲3.33 | 41.75 ▼0.03 |
Dashboard /wp-admin | 2,216 ▲25 | 4.85 ▼0.08 | 111.70 ▲2.92 | 40.39 ▼5.69 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.00 ▼0.04 | 39.79 ▲4.37 | 36.19 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.12 ▲5.46 | 649.49 ▲22.88 | 52.43 ▼0.75 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.20 ▼0.06 | 96.26 ▲0.07 | 43.29 ▲1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/event-codes/admin/partials/event-codes-admin-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Event_Codes_Datasource_Config' not found in wp-content/plugins/event-codes/datasources/configs/class-event-codes-the-events-calendar.php:3
- > PHP Fatal error
Uncaught Error: Class 'Event_Codes_Datasource' not found in wp-content/plugins/event-codes/datasources/sources/class-event-codes-datasource-groot.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: modern tribe, calendar, event, events, event calendar shortcode...
event-codes/event-codes.php Passed 13 tests
The main PHP script in "Event Codes - Shortcodes that work with other event plugins" version 1.0.8 is automatically included on every request by WordPress
136 characters long description:
EventCodes plugin provides a shortcode that can be used to display a list of events on home page, sidebar or any other part of the site.
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
No dangerous file extensions were detected3,403 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 409 | 847 | 1,804 |
CSS | 4 | 0 | 14 | 1,559 |
JavaScript | 2 | 16 | 63 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 8 | 6.11% |
▷ Public methods | 122 | 93.13% |
▷ Protected methods | 5 | 3.82% |
▷ Private methods | 4 | 3.05% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 12 | |
▷ Global constants | 2 | 16.67% |
▷ Class constants | 10 | 83.33% |
▷ Public constants | 10 | 100.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
7 PNG files occupy 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/ext-link.png | 1.12KB | 0.19KB | ▼ 82.80% |
public/img/ex4.png | 104.20KB | 36.02KB | ▼ 65.43% |
public/img/ex1.png | 105.07KB | 34.76KB | ▼ 66.92% |
public/img/ex3.png | 33.26KB | 18.20KB | ▼ 45.29% |
public/img/ex2.png | 30.80KB | 17.26KB | ▼ 43.98% |