Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.81ms] Passed 4 tests
A check of server-side resources used by WP SPID Italia
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.56 ▲2.76 |
Dashboard /wp-admin | 3.44 ▲0.14 | 46.37 ▲2.11 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 50.18 ▼2.62 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 84.29 ▼9.50 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.01 ▲3.41 |
SPID /wp-admin/options-general.php?page=spid_menu | 3.35 | 30.70 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 96 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
spid_version |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP SPID Italia
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 13.43 ▼0.92 | 8.73 ▲6.88 | 43.45 ▲0.12 |
Dashboard /wp-admin | 2,196 ▲22 | 5.51 ▼0.09 | 89.50 ▲4.86 | 36.11 ▼4.08 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.00 ▲0.02 | 35.66 ▼1.88 | 33.18 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 23.10 ▲5.05 | 667.04 ▼31.77 | 57.88 ▼13.09 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.05 | 95.36 ▼8.40 | 43.18 ▼3.62 |
SPID /wp-admin/options-general.php?page=spid_menu | 989 | 2.17 | 23.80 | 69.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- spid_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Italia\\Spid\\Spid\\Interfaces\\ResponseInterface' not found in wp-content/plugins/wp-spid-italia/lib/src/Spid/Saml/In/Response.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-spid-italia/user.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Italia\\Spid\\Spid\\Interfaces\\ResponseInterface' not found in wp-content/plugins/wp-spid-italia/lib/src/Spid/Saml/In/LogoutResponse.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Italia\\Spid\\Spid\\Interfaces\\SAMLInterface' not found in wp-content/plugins/wp-spid-italia/lib/src/Spid/Saml.php:12
- > PHP Fatal error
Uncaught Error: Class 'Italia\\Spid\\Spid\\Saml\\Out\\Base' not found in wp-content/plugins/wp-spid-italia/lib/src/Spid/Saml/Out/LogoutRequest.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Italia\\Spid\\Spid\\Interfaces\\ResponseInterface' not found in wp-content/plugins/wp-spid-italia/lib/src/Spid/Saml/In/LogoutRequest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Italia\\Spid\\Spid\\Saml\\Out\\Base' not found in wp-content/plugins/wp-spid-italia/lib/src/Spid/Saml/Out/LogoutResponse.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-spid-italia/wp-spid-italia.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Italia\\Spid\\Spid\\Interfaces\\IdpInterface' not found in wp-content/plugins/wp-spid-italia/lib/src/Spid/Saml/Idp.php:11
- > PHP Fatal error
Uncaught Error: Class 'Italia\\Spid\\Spid\\Saml\\Out\\Base' not found in wp-content/plugins/wp-spid-italia/lib/src/Spid/Saml/Out/AuthnRequest.php:9
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires php: Version not formatted correctly
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wp-spid-italia/wp-spid-italia.php Passed 13 tests
"WP SPID Italia" version 2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
SPID - Sistema Pubblico di Identità Digitale
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin7,010 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 621 | 1,031 | 4,298 |
SVG | 17 | 46 | 11 | 1,202 |
XML | 17 | 8 | 0 | 923 |
CSS | 1 | 84 | 2 | 398 |
Markdown | 2 | 31 | 0 | 74 |
JSON | 2 | 0 | 0 | 63 |
JavaScript | 2 | 5 | 11 | 37 |
YAML | 1 | 4 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 25.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 25 | 13.89% |
▷ Public methods | 154 | 85.56% |
▷ Protected methods | 1 | 0.56% |
▷ Private methods | 25 | 13.89% |
Functions | 42 | |
▷ Named functions | 18 | 42.86% |
▷ Anonymous functions | 24 | 57.14% |
Constants | 49 | |
▷ Global constants | 9 | 18.37% |
▷ Class constants | 40 | 81.63% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/no.png | 1.86KB | 1.75KB | ▼ 5.82% |
img/spid-logo-wp.png | 37.93KB | 16.75KB | ▼ 55.85% |
img/spid-ico-circle-bb.png | 11.58KB | 5.30KB | ▼ 54.27% |
img/spid-agid-logo-lb.png | 50.62KB | 24.91KB | ▼ 50.78% |
img/ils.png | 6.00KB | 2.91KB | ▼ 51.51% |