Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/necrologi-italia-nicv/functions.php+1869
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.51MB] [CPU: ▲734.91ms] 50% from 4 tests
Server-side resources used by Necrologi Italia NICV
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 778.63ms on /wp-admin/admin.php?page=nicv-utilizzo)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 734.91ms on /wp-admin/admin.php?page=nicv-utilizzo)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 794.35 ▲753.83 |
Dashboard /wp-admin | 3.85 ▲0.54 | 749.55 ▲703.84 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 791.07 ▲743.09 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 848.74 ▲759.61 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 773.81 ▲738.88 |
Custom CSS /wp-admin/admin.php?page=nicv-css-plugin | 3.68 | 903.09 |
Configurazione /wp-admin/admin.php?page=nicv-plugin | 3.68 | 764.21 |
Installazione /wp-admin/admin.php?page=nicv-utilizzo | 3.68 | 778.63 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 76 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
nicv_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
nicv_css_settings |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Necrologi Italia NICV: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲216 | 13.89 ▼0.48 | 5.92 ▲4.27 | 37.52 ▼6.39 |
Dashboard /wp-admin | 2,237 ▲52 | 4.96 ▲0.06 | 97.87 ▼4.10 | 80.83 ▲42.15 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.12 ▲0.06 | 33.17 ▼4.25 | 32.93 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,705 ▲170 | 20.39 ▼0.69 | 618.09 ▼91.14 | 42.65 ▼16.10 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.21 ▲0.02 | 93.06 ▼8.80 | 81.98 ▲36.99 |
Custom CSS /wp-admin/admin.php?page=nicv-css-plugin | 1,173 | 1.80 | 23.62 | 29.39 |
Configurazione /wp-admin/admin.php?page=nicv-plugin | 1,306 | 1.78 | 26.22 | 34.04 |
Installazione /wp-admin/admin.php?page=nicv-utilizzo | 968 | 1.80 | 23.25 | 32.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- nicv_css_settings
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- nicv_settings
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/necrologi-italia-nicv/nicaptcha.jpeg.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/necrologi-italia-nicv/nicv.siteping.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/necrologi-italia-nicv/nicv.conf.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/necrologi-italia-nicv/nicv.conf.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/necrologi-italia-nicv/nicv.conf.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/necrologi-italia-nicv/functions.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/necrologi-italia-nicv/nicv.conf.php:4
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
necrologi-italia-nicv/nicv.php 85% from 13 tests
"Necrologi Italia NICV" version 2.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 250 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("necrologi-italia-nicv.php" instead of "nicv.php")
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
Success! There were no dangerous files found in this plugin3,892 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 768 | 99 | 2,435 |
SVG | 9 | 6 | 6 | 563 |
JavaScript | 4 | 165 | 183 | 546 |
CSS | 4 | 108 | 56 | 348 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 31 | |
▷ Global constants | 31 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
43 PNG files occupy 0.41MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-nicv/scheda-defunto.png | 2.05KB | 1.35KB | ▼ 34.22% |
images/icon-nicv/ricerca-defunto.png | 0.73KB | 0.40KB | ▼ 45.17% |
images/texture/subtle_white_feathers.png | 162.66KB | 124.11KB | ▼ 23.70% |
images/icon-nicv/icona-ringraziamento.png | 1.69KB | 0.55KB | ▼ 67.40% |
images/social/icona-telefono.png | 1.67KB | 1.32KB | ▼ 20.66% |