70% enviosimple

Code Review | WooCommerce EnvioSimple Integration

WordPress plugin WooCommerce EnvioSimple Integration scored 70% from 54 tests.

About plugin

  • Plugin page: enviosimple
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2020
  • Latest release: Aug 4, 2020
  • Number of updates: 16
  • Update frequency: every 6.5 days
  • Top authors: enviosimple (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 635 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.68 ▼2.25
Dashboard /wp-admin3.31 ▲0.0044.12 ▼4.32
Posts /wp-admin/edit.php3.36 ▲0.0046.95 ▼0.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.45 ▼15.64
Media Library /wp-admin/upload.php3.23 ▲0.0033.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.23 ▼1.172.08 ▼0.0944.13 ▼0.40
Dashboard /wp-admin2,206 ▲215.91 ▲0.06107.09 ▲6.1239.16 ▼2.82
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0239.71 ▼0.6037.03 ▼0.36
Add New Post /wp-admin/post-new.php1,543 ▲2018.07 ▼5.24618.30 ▼42.8758.39 ▼8.26
Media Library /wp-admin/upload.php1,391 ▲124.20 ▼0.0398.22 ▼1.1444.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:
LanguageFilesBlank linesComment linesLines of code
PHP26686284

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 code0.29
Average class complexity12.50
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods853.33%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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