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.00MB] [CPU: ▼1.66ms] Passed 4 tests
An overview of server-side resources used by Mensagia for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.76 ▲0.36 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.99 ▼4.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.12 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.80 ▼0.79 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.77 ▲3.95 |
Server storage [IO: ▲2.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Mensagia for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.25 | 1.73 ▼0.04 | 44.39 ▲0.43 |
Dashboard /wp-admin | 2,206 ▲18 | 5.79 ▼0.12 | 98.78 ▼5.75 | 38.72 ▼5.19 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 39.39 ▼1.84 | 35.87 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.30 ▲5.80 | 1,053.83 ▲387.34 | 61.56 ▲2.91 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.09 | 101.88 ▲0.88 | 44.86 ▲0.70 |
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 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-mensagia/views/partials/vars.php
- > /wp-content/plugins/woo-mensagia/woo-mensagia.php
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: customer_all in wp-content/plugins/woo-mensagia/views/partials/vars.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-mensagia/views/export.php:2
- > PHP Notice
Undefined variable: customer_basic in wp-content/plugins/woo-mensagia/views/partials/vars.php on line 2
- > PHP Notice
Undefined variable: pedido in wp-content/plugins/woo-mensagia/views/partials/vars.php on line 48
- > PHP Notice
Undefined variable: refunds in wp-content/plugins/woo-mensagia/views/partials/vars.php on line 75
- > PHP Notice
Undefined variable: customer_basic in wp-content/plugins/woo-mensagia/views/partials/vars.php on line 9
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/woo-mensagia/views/partials/textarea.php on line 6
- > PHP Notice
Undefined variable: languages in wp-content/plugins/woo-mensagia/views/partials/textarea.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-mensagia/views/partials/modalDemo.php:7
- > PHP Notice
Undefined variable: tienda in wp-content/plugins/woo-mensagia/views/partials/vars.php on line 37
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
woo-mensagia/woo-mensagia.php Passed 13 tests
"Mensagia for WooCommerce" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
136 characters long description:
Connect your ecommerce with Mensagia to create hypersegmented campaigns and send automatic notifications through SMS or Email Marketing.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin18,028 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 29 | 44 | 7,404 |
PO File | 11 | 1,892 | 2,145 | 4,602 |
PHP | 17 | 901 | 153 | 3,569 |
JavaScript | 7 | 727 | 230 | 2,150 |
SVG | 2 | 0 | 0 | 300 |
LESS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 30.88 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 16 | 20.25% |
▷ Public methods | 55 | 69.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 30.38% |
Functions | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo-icon-mensagia.png | 1.28KB | 0.81KB | ▼ 36.54% |
img/logo_petit_black.png | 1.57KB | 1.47KB | ▼ 6.40% |
img/mensagia.png | 1.57KB | 1.47KB | ▼ 6.40% |