Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▲1.97ms] Passed 4 tests
A check of server-side resources used by Campi Moduli Italiani
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.13 ▲3.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.75 ▼1.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 59.33 ▲1.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 110.33 ▲8.64 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.57 ▲4.02 |
Server storage [IO: ▲0.61MB] [DB: ▲2.25MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_gcmi_comuni_soppressi |
wp_gcmi_comuni_variazioni |
wp_gcmi_codici_catastali |
wp_gcmi_stati |
wp_gcmi_comuni_attuali |
wp_gcmi_stati_cessati |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Campi Moduli Italiani
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.76 ▲0.19 | 2.09 ▲0.43 | 58.17 ▲11.98 |
Dashboard /wp-admin | 2,189 ▲12 | 5.52 ▼0.13 | 96.86 ▲10.71 | 39.96 ▼5.17 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▲0.03 | 38.52 ▼5.11 | 35.70 ▼3.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.32 ▲0.19 | 687.17 ▲60.48 | 51.44 ▼1.79 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.19 ▲0.02 | 99.27 ▼2.35 | 41.81 ▼5.04 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/campi-moduli-italiani/modules/comune/class-gcmi-comune.php
- > /wp-content/plugins/campi-moduli-italiani/admin/class-gcmi-activator.php
- > /wp-content/plugins/campi-moduli-italiani/campi-moduli-italiani.php
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/campi-moduli-italiani/integrations/wpforms/wpforms-integration.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/campi-moduli-italiani/settings.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/campi-moduli-italiani/modules/formsign/wpcf7-formsign-formtag.php:22
- > PHP Warning
Use of undefined constant GCMI_USE_STATO - assumed 'GCMI_USE_STATO' (this will throw an Error in a future version of PHP) in wp-content/plugins/campi-moduli-italiani/integrations/contact-form-7/contact-form-7-integrations.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/campi-moduli-italiani/modules/comune/comune-shortcode.php:12
- > PHP Fatal error
Uncaught Error: Class 'WPForms_Field' not found in wp-content/plugins/campi-moduli-italiani/modules/stato/class-wpforms-field-stato.php:22
- > PHP Warning
Use of undefined constant GCMI_USE_CF - assumed 'GCMI_USE_CF' (this will throw an Error in a future version of PHP) in wp-content/plugins/campi-moduli-italiani/integrations/contact-form-7/contact-form-7-integrations.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/campi-moduli-italiani/includes/cron.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/campi-moduli-italiani/modules/comune/wpcf7-comune-formtag.php:9
- > PHP Warning
require_once(GCMI_PLUGIN_DIR/admin/includes/help-tabs.php): failed to open stream: No such file or directory in wp-content/plugins/campi-moduli-italiani/admin/admin.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: contact form 7, firma digitale, comuni italiani, codice fiscale, multisite...
campi-moduli-italiani/campi-moduli-italiani.php 92% from 13 tests
"Campi Moduli Italiani" version 2.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 789 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7,502 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 919 | 2,474 | 6,078 |
PO File | 1 | 201 | 329 | 519 |
JavaScript | 6 | 24 | 8 | 435 |
CSS | 6 | 42 | 63 | 336 |
HTML | 1 | 5 | 38 | 105 |
JSON | 4 | 0 | 0 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 42.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 5.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 143 | |
▷ Static methods | 60 | 41.96% |
▷ Public methods | 123 | 86.01% |
▷ Protected methods | 8 | 5.59% |
▷ Private methods | 12 | 8.39% |
Functions | 60 | |
▷ Named functions | 49 | 81.67% |
▷ Anonymous functions | 11 | 18.33% |
Constants | 25 | |
▷ Global constants | 19 | 76.00% |
▷ Class constants | 6 | 24.00% |
▷ Public constants | 6 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon.png | 0.76KB | 0.48KB | ▼ 36.42% |
img/gcmi_info.png | 2.58KB | 1.88KB | ▼ 27.05% |