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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.89ms] Passed 4 tests
An overview of server-side resources used by Soldi Pubblici
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 42.88 ▲1.29 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.73 ▲0.29 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.34 ▼4.20 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.98 ▼16.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.08 ▲1.22 |
Soldi Pubblici /wp-admin/admin.php?page=sp_wpgov_settings | 3.21 | 35.32 |
WPGov.it /wp-admin/admin.php?page=impostazioni-wpgov | 3.19 | 32.39 |
Server storage [IO: ▲4.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Soldi Pubblici: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.25 ▼0.10 | 1.68 ▼0.14 | 42.79 ▼1.21 |
Dashboard /wp-admin | 2,218 ▲38 | 5.62 ▼0.05 | 89.75 ▼3.13 | 41.24 ▼3.01 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.02 ▲0.01 | 40.72 ▲3.13 | 36.34 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.00 ▲0.01 | 678.46 ▲15.18 | 54.29 ▼2.45 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.20 ▲0.08 | 99.24 ▼14.82 | 44.74 ▼4.69 |
Soldi Pubblici /wp-admin/admin.php?page=sp_wpgov_settings | 779 | 1.99 | 27.11 | 25.02 |
WPGov.it /wp-admin/admin.php?page=impostazioni-wpgov | 780 | 2.02 | 24.04 | 23.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=impostazioni-wpgov
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'sp_wpgov_settings' not found or invalid function name
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/soldi-pubblici/soldi-pubblici.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/soldi-pubblici/inc/shortcode.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: marco, pubblici, spesa, soldi, wpgov...
soldi-pubblici/soldi-pubblici.php Passed 13 tests
Analyzing the main PHP file in "Soldi Pubblici" version 0.2.1
65 characters long description:
Plugin per l'interfacciamento con il portale soldipubblici.gov.it
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 detected139 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 34 | 10 | 138 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for 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.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/media/logo-siope.png | 7.83KB | 2.83KB | ▼ 63.90% |
inc/media/logo.png | 2.69KB | 1.87KB | ▼ 30.65% |