Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.61ms] Passed 4 tests
Server-side resources used by COVID-19 Toscana
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.11 ▼4.25 |
Dashboard /wp-admin | 3.43 ▲0.12 | 49.18 ▼8.59 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.37 ▼5.35 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 96.51 ▲4.92 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.88 ▲3.75 |
Per Iniziare /wp-admin/admin.php?page=covid19toscana-start | 3.32 | 33.79 |
Impostazioni /wp-admin/admin.php?page=covid19toscana-options | 3.32 | 37.45 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 9 new options
New WordPress options |
---|
graph_options |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
dataset_url |
provence_colors |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for COVID-19 Toscana
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲223 | 14.89 ▲0.34 | 10.29 ▲8.38 | 38.16 ▼6.79 |
Dashboard /wp-admin | 2,325 ▲122 | 5.11 ▼0.73 | 104.56 ▼16.70 | 40.41 ▼5.80 |
Posts /wp-admin/edit.php | 2,216 ▲116 | 2.30 ▲0.27 | 42.37 ▲5.59 | 36.35 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.60 ▲5.98 | 667.35 ▲18.43 | 36.59 ▼20.97 |
Media Library /wp-admin/upload.php | 1,510 ▲110 | 4.54 ▲0.35 | 97.74 ▼6.29 | 41.23 ▼2.92 |
Per Iniziare /wp-admin/admin.php?page=covid19toscana-start | 1,264 | 1.90 | 27.85 | 49.55 |
Impostazioni /wp-admin/admin.php?page=covid19toscana-options | 3,705 | 3.49 | 136.27 | 34.87 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
covid-19-toscana/covid-19-toscana.php Passed 13 tests
Analyzing the main PHP file in "COVID-19 Toscana" version 1.0.1
71 characters long description:
Plug-in per la visualizzazione dei dati COVID-19 della regione Toscana.
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
Good job! No executable or dangerous file extensions detected854 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 142 | 14 | 576 |
JavaScript | 3 | 35 | 10 | 208 |
CSS | 1 | 16 | 0 | 70 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/provincia0.png | 35.02KB | 13.00KB | ▼ 62.87% |
assets/confronto1.png | 37.63KB | 11.35KB | ▼ 69.83% |
assets/toscana0.png | 53.74KB | 18.48KB | ▼ 65.61% |
assets/confronto0.png | 59.06KB | 19.39KB | ▼ 67.18% |
assets/toscana1.png | 33.95KB | 12.17KB | ▼ 64.15% |