84% mail-boxes-etc-mexico

Code Review | MBE Shipping de Mail Boxes Etc.

WordPress plugin MBE Shipping de Mail Boxes Etc. scored 84% from 54 tests.

About plugin

  • Plugin page: mail-boxes-etc-me...
  • Plugin version: 1.2.7
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Dec 6, 2019
  • Latest release: Jul 16, 2021
  • Number of updates: 31
  • Update frequency: every 19.2 days
  • Top authors: mbemx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,234 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼0.48ms] Passed 4 tests

An overview of server-side resources used by MBE Shipping de Mail Boxes Etc.
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.18 ▲2.76
Dashboard /wp-admin3.44 ▲0.1450.13 ▼1.25
Posts /wp-admin/edit.php3.55 ▲0.2045.99 ▼2.27
Add New Post /wp-admin/post-new.php6.02 ▲0.1397.65 ▲2.13
Media Library /wp-admin/upload.php3.36 ▲0.1334.61 ▼0.53

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for MBE Shipping de Mail Boxes Etc.
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.421.79 ▼0.0442.00 ▼3.11
Dashboard /wp-admin2,203 ▲175.86 ▼0.02102.46 ▼6.3241.98 ▼0.56
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0233.39 ▼2.2833.98 ▼1.46
Add New Post /wp-admin/post-new.php1,546 ▲2218.14 ▼5.01593.53 ▼55.2682.24 ▲22.27
Media Library /wp-admin/upload.php1,382 ▼34.26 ▲0.07100.43 ▼2.4545.20 ▲2.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mail-boxes-etc-mexico/includes/class-mbemex-wc-store-pickup.php
    • > /wp-content/plugins/mail-boxes-etc-mexico/includes/class-mbemex-wc-shipping.php

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: packages, deliveries, orders, tracking, mbe

mail-boxes-etc-mexico/mail-boxes-etc-mexico.php Passed 13 tests

Analyzing the main PHP file in "MBE Shipping de Mail Boxes Etc." version 1.2.7
61 characters long description:
Integracion de MBE Shipping de Mail Boxes Etc. a Woocommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,507 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP114322761,348
JavaScript13137118
CSS17441

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3995.12%
▷ Protected methods00.00%
▷ Private methods24.88%
Functions20
▷ Named functions1785.00%
▷ Anonymous functions315.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/screenshot-3.png35.90KB10.50KB▼ 70.74%