Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.38ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Carta Docente
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.62 ▲3.88 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.07 ▲0.23 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.18 ▼4.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.38 ▼2.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.54 ▼1.96 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WooCommerce Carta Docente: 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,789 ▲28 | 14.24 ▼0.01 | 1.98 ▼0.24 | 41.86 ▲1.05 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.03 | 82.13 ▼14.03 | 41.48 ▼2.55 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.06 | 33.52 ▼11.52 | 37.31 ▲2.82 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 18.33 ▼4.22 | 605.12 ▼54.16 | 75.39 ▲17.84 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▲0.07 | 99.75 ▼23.21 | 48.35 ▲0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-carta-docente/wc-carta-docente.php:99
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-carta-docente/includes/class-wccd-admin.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-carta-docente/includes/ilghera-notice/class-ilghera-notice.php:214
- > PHP Fatal error
Uncaught Error: Class 'Ilghera_Notice' not found in wp-content/plugins/wc-carta-docente/includes/ilghera-notice/extension.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-carta-docente/includes/class-wccd-teacher-gateway.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-carta-docente/includes/class-wccd.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: shop, payment gateway, orders, woocommerce, e-commerce...
wc-carta-docente/wc-carta-docente.php 92% from 13 tests
The principal PHP file in "WooCommerce Carta Docente" v. 1.3.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,393 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 443 | 361 | 816 |
CSS | 5 | 58 | 19 | 289 |
JavaScript | 3 | 55 | 34 | 177 |
XML | 1 | 0 | 0 | 111 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 16.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 4 | 10.26% |
▷ Public methods | 38 | 97.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.56% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
12 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/tzCheckbox/img/tzine.png | 1.23KB | 0.82KB | ▼ 33.25% |
js/tzCheckbox/jquery.tzCheckbox/background.png | 4.96KB | 2.59KB | ▼ 47.82% |
images/remove-cat-hover.png | 0.46KB | 0.21KB | ▼ 54.08% |
images/icon.png | 57.93KB | 25.73KB | ▼ 55.59% |
js/tzCheckbox/img/line_bg.png | 0.26KB | 0.23KB | ▼ 9.16% |