Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.78ms] Passed 4 tests
An overview of server-side resources used by Eventi Asiago.it
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.59 ▼7.51 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.74 ▼1.30 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 45.69 ▼5.37 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 94.01 ▼4.95 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 37.82 ▼0.61 |
Eventi Asiago.it /wp-admin/options-general.php?page=webcloud-asiago-events | 3.24 | 32.69 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_webcloud_asiago_events_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Eventi Asiago.it
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.70 ▼0.60 | 1.69 ▼0.51 | 42.58 ▼2.40 |
Dashboard /wp-admin | 2,210 ▲25 | 4.79 ▼1.23 | 107.82 ▲2.51 | 42.44 ▲4.61 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.08 ▲0.08 | 37.10 ▼3.42 | 38.24 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.19 ▲0.19 | 676.75 ▲41.13 | 63.59 ▲8.57 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▲0.06 | 97.93 ▼9.62 | 46.34 ▲1.25 |
Eventi Asiago.it /wp-admin/options-general.php?page=webcloud-asiago-events | 778 | 2.06 | 23.33 | 26.33 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_webcloud_asiago_events_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
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 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/eventi-asiago-it/views/events.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Webcloud\\AsiagoEvents\\add_shortcode() in wp-content/plugins/eventi-asiago-it/webcloud-asiago-events.php:42
- > PHP Notice
Undefined variable: events in wp-content/plugins/eventi-asiago-it/views/events.php on line 156
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/eventi-asiago-it/views/events.php on line 156
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
No tags were found
eventi-asiago-it/webcloud-asiago-events.php 92% from 13 tests
This is the main PHP file of "Eventi Asiago.it" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("eventi-asiago-it.php" instead of "webcloud-asiago-events.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin305 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 67 | 305 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin