Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼8.35ms] Passed 4 tests
A check of server-side resources used by Case History
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.79 ▼3.00 |
Dashboard /wp-admin | 3.26 ▼0.04 | 38.94 ▼9.12 |
Posts /wp-admin/edit.php | 3.33 ▼0.03 | 39.32 ▼6.34 |
Add New Post /wp-admin/post-new.php | 5.51 ▼0.37 | 71.68 ▼14.94 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.61 ▲2.09 |
Aggiungi Case History /wp-admin/post-new.php?post_type=casehistory | 3.33 | 42.33 |
Tutti le Case History /wp-admin/edit.php?post_type=casehistory | 3.31 | 36.73 |
Categorie /wp-admin/edit-tags.php?taxonomy=casehistory_cat&post_type=casehistory | 3.26 | 29.27 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.28 | 31.09 |
Tag /wp-admin/edit-tags.php?taxonomy=casehistory_tag&post_type=casehistory | 3.26 | 30.90 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_casehistory_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Case History
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲168 | 13.22 ▼1.07 | 1.70 ▼1.08 | 37.58 ▼13.50 |
Dashboard /wp-admin | 2,281 ▲93 | 5.83 ▲0.96 | 95.18 ▼20.60 | 42.27 ▼0.00 |
Posts /wp-admin/edit.php | 2,175 ▲86 | 2.07 ▲0.08 | 41.31 ▲5.89 | 40.20 ▲5.95 |
Add New Post /wp-admin/post-new.php | 1,593 ▲71 | 23.28 ▲0.17 | 672.28 ▼11.72 | 51.24 ▼11.47 |
Media Library /wp-admin/upload.php | 1,468 ▲80 | 4.24 ▼0.01 | 97.70 ▼0.79 | 47.50 ▲3.55 |
Aggiungi Case History /wp-admin/post-new.php?post_type=casehistory | 2,657 | 7.67 | 184.54 | 83.66 |
Tutti le Case History /wp-admin/edit.php?post_type=casehistory | 1,177 | 2.00 | 34.33 | 39.17 |
Categorie /wp-admin/edit-tags.php?taxonomy=casehistory_cat&post_type=casehistory | 1,345 | 2.42 | 28.27 | 33.24 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,001 | 2.09 | 24.47 | 26.70 |
Tag /wp-admin/edit-tags.php?taxonomy=casehistory_tag&post_type=casehistory | 1,345 | 2.33 | 28.83 | 33.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_casehistory_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=casehistory_tag&post_type=casehistory
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP 0% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/casehistory/casehistory.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/casehistory/class-tgm-plugin-activation.php:161
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/casehistory/casehistory_tassonomie.php:26
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/casehistory/casehistory_widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/casehistory/casehistory_metabox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/casehistory/casehistory_pluginaggiuntivi.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/casehistory/casehistory_shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/casehistory/casehistory_opzioni.php:82
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== casehistory ===
) - Screenshots: These screenshots do not have images: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
casehistory/casehistory.php Passed 13 tests
The main PHP file in "Case History" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
38 characters long description:
Case History, Case Study per wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,615 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 397 | 802 | 1,538 |
PO File | 1 | 22 | 27 | 77 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 42.40 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 5.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 6 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/prodotti.png | 0.98KB | 0.98KB | 0.00% |