Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Woocommerce_Baghera' does not have a method 'swoocommerce_baghera_addon_activate'
Server metrics [RAM: ▼0.09MB] [CPU: ▼21.78ms] Passed 4 tests
A check of server-side resources used by Baghera
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.62 ▲0.32 |
Dashboard /wp-admin | 3.22 ▼0.13 | 29.58 ▼38.42 |
Posts /wp-admin/edit.php | 3.35 ▼0.00 | 38.20 ▼15.42 |
Add New Post /wp-admin/post-new.php | 5.60 ▼0.29 | 67.16 ▼25.64 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 32.55 ▼7.64 |
Creazione Fattura /wp-admin/admin.php?page=woocommerce-baghera-creazione-fattura | 3.20 | 27.53 |
Rimuovi Metadato di Fattura Creata /wp-admin/admin.php?page=woocommerce-baghera-delete-metadato-fattura-creata | 3.20 | 25.62 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Baghera
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.31 ▼0.06 | 1.74 ▼0.46 | 39.33 ▼12.44 |
Dashboard /wp-admin | 2,215 ▲41 | 5.56 ▼0.06 | 87.88 ▼17.18 | 39.45 ▲0.76 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.99 ▼0.17 | 36.31 ▼4.34 | 36.36 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.73 ▲0.32 | 661.18 ▼26.05 | 58.61 ▲11.08 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.08 ▼0.15 | 104.63 ▲9.65 | 45.92 ▲4.09 |
Creazione Fattura /wp-admin/admin.php?page=woocommerce-baghera-creazione-fattura | 679 | 1.51 | 6.62 | 14.25 |
Rimuovi Metadato di Fattura Creata /wp-admin/admin.php?page=woocommerce-baghera-delete-metadato-fattura-creata | 778 | 2.02 | 29.07 | 22.11 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woocommerce-baghera-delete-metadato-fattura-creata
- > Notice in wp-content/plugins/baghera/class-woocommerce-baghera.php+104
Trying to access array offset on value of type bool
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: fatturazione
baghera/class-woocommerce-baghera.php 85% from 13 tests
Analyzing the main PHP file in "Baghera" version 0.1
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("baghera.php" instead of "class-woocommerce-baghera.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected864 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 161 | 226 | 745 |
CSS | 1 | 26 | 2 | 96 |
JavaScript | 1 | 5 | 0 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 74.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/baghera_seat.png | 22.13KB | 7.40KB | ▼ 66.58% |