Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.75ms] Passed 4 tests
An overview of server-side resources used by WooCommerce EnvioSimple Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.68 ▼2.25 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.12 ▼4.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.95 ▼0.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.45 ▼15.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.88 ▲0.46 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce EnvioSimple Integration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.23 ▼1.17 | 2.08 ▼0.09 | 44.13 ▼0.40 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲0.06 | 107.09 ▲6.12 | 39.16 ▼2.82 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.03 ▲0.02 | 39.71 ▼0.60 | 37.03 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,543 ▲20 | 18.07 ▼5.24 | 618.30 ▼42.87 | 58.39 ▼8.26 |
Media Library /wp-admin/upload.php | 1,391 ▲12 | 4.20 ▼0.03 | 98.22 ▼1.14 | 44.96 ▼0.91 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.00MB] 25% 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 without warnings or errors
- > Error in wp-content/plugins/enviosimple/enviosimple.php+198
Uncaught Error: Call to undefined function wc_api_hash() in wp-content/plugins/enviosimple/enviosimple.php:198
Stack trace:
#0 wp-content/plugins/enviosimple/enviosimple.php(89): EnvioSimple::get_api_credentials()
#1 wp-includes/class-wp-hook.php(310): EnvioSimple::uninstallAndCleanUp()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(1269): do_action()
#5 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall successfully, leaving 3 files (0.02MB) in the plugin directory
- (new file) readme.txt
- (new file) enviosimple.php
- (new file) includes/class-wc-enviosimple-integration.php
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: integration, woocommerce
enviosimple/enviosimple.php Passed 13 tests
The principal PHP file in "WooCommerce EnvioSimple Integration" v. 1.0.4 is loaded by WordPress automatically on each request
45 characters long description:
EnvioSimple WooCommerce integration extension
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin284 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 66 | 86 | 284 |
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.29 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 8 | 53.33% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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