Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.79ms] Passed 4 tests
A check of server-side resources used by Wp TrovaPrezzi Wordpress / WooCommerce Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.69 ▼7.64 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.12 ▼5.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.33 ▼2.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.64 ▼19.63 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.44 ▼0.15 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 14 new options
New WordPress options |
---|
wp_trovaprezzi_category_tp_settings |
wp_trovaprezzi_brand_settings |
widget_recent-posts |
wp_trovaprezzi_eancode_settings |
theysaidso_admin_options |
wp_trovaprezzi_description_settings |
widget_theysaidso_widget |
wp_trovaprezzi_code_settings |
wp_trovaprezzi_custom_shipping_cost_settings |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Wp TrovaPrezzi Wordpress / WooCommerce Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.68 ▼0.70 | 1.65 ▼0.86 | 43.31 ▼3.65 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.05 | 102.34 ▼12.84 | 38.05 ▼5.50 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 40.82 ▲5.57 | 33.86 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.13 ▲0.09 | 646.06 ▼18.74 | 50.30 ▼17.61 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▲0.03 | 97.94 ▼16.20 | 43.20 ▼3.56 |
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 did not uninstall successfully, leaving 14 options in the database
- wp_trovaprezzi_description_settings
- wp_trovaprezzi_custom_shipping_cost_settings
- wp_trovaprezzi_brand_settings
- wp_trovaprezzi_eancode_settings
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- wp_trovaprezzi_category_tp_settings
- ...
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-trovaprezzi/public/partials/wp-trova-prezzi-free-public-display.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-trovaprezzi/admin/class-wp-trova-prezzi-free-admin.php on line 1140
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-trovaprezzi/admin/class-wp-trova-prezzi-free-admin.php on line 1140
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/wp-trovaprezzi/admin/class-wp-trova-prezzi-free-admin.php on line 1140
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-trovaprezzi/admin/partials/wp-trova-prezzi-free-admin-display.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_tp_create_query() in wp-content/plugins/wp-trovaprezzi/admin/partials/wp-trova-prezzi-free-admin-display-products.php:23
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2 in wp-trovaprezzi/assets to your readme.txt
wp-trovaprezzi/wp-trova-prezzi-free.php 77% from 13 tests
The principal PHP file in "Wp TrovaPrezzi Wordpress / WooCommerce Plugin" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-trovaprezzi.php" instead of "wp-trova-prezzi-free.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 207 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
Good job! No executable or dangerous file extensions detected2,841 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 313 | 564 | 1,478 |
JavaScript | 6 | 153 | 119 | 541 |
PO File | 2 | 166 | 187 | 439 |
CSS | 6 | 53 | 30 | 383 |
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.23 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 2 | 2.63% |
▷ Public methods | 71 | 93.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.58% |
Functions | 15 | |
▷ Named functions | 15 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/tp16.png | 0.23KB | 0.28KB | 0.00% |
admin/skins/square/red2x.png | 7.51KB | 3.07KB | ▼ 59.18% |
admin/skins/square/red.png | 4.94KB | 1.83KB | ▼ 62.99% |
admin/img/tp24_off.png | 1.68KB | 1.27KB | ▼ 24.49% |
admin/img/tp24_on.png | 1.62KB | 1.24KB | ▼ 23.51% |