Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.46ms] Passed 4 tests
An overview of server-side resources used by Enviamelo (Argentina)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.95 ▼0.84 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.32 ▼9.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.68 ▼4.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.04 ▼14.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.79 ▲1.57 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Enviamelo (Argentina): an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 14.23 ▼0.13 | 1.99 ▲0.08 | 45.69 ▲4.14 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▼0.05 | 94.99 ▲8.42 | 41.71 ▲1.69 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.04 | 36.46 ▼4.31 | 31.94 ▼5.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.49 ▲0.35 | 670.25 ▲29.41 | 49.81 ▼4.64 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▲0.03 | 101.03 ▼7.14 | 42.67 ▼4.51 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'Ecomerciar\\Enviamelo\\Helper\oticesTrait' not found in wp-content/plugins/enviamelo/Helper/Helper.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Ecomerciar\\Enviamelo\\Api\\ApiConnector' not found in wp-content/plugins/enviamelo/Api/EnviameloApi.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: enviamelo, woocommerce, shipments
enviamelo/woo-enviamelo-arg.php 92% from 13 tests
The entry point to "Enviamelo (Argentina)" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("enviamelo.php" instead of "woo-enviamelo-arg.php")
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
Success! There were no dangerous files found in this plugin1,807 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 292 | 646 | 1,807 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 6 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 62 | 67.39% |
▷ Public methods | 89 | 96.74% |
▷ Protected methods | 1 | 1.09% |
▷ Private methods | 2 | 2.17% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin