89% ecommerce-shipping-dashboard-by-ups-for-woocommerce

Code Review | WooCommerce UPS eCommerce Shipping Dashboard Integration

WordPress plugin WooCommerce UPS eCommerce Shipping Dashboard Integration scored89%from 54 tests.

About plugin

  • Plugin page: ecommerce-shippin...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jun 7, 2023
  • Latest release: Jun 8, 2023
  • Number of updates: 12
  • Update frequency: every 0.4 days
  • Top authors: officialups (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /251 total downloads

Benchmarks

Plugin footprint 83% 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.96ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce UPS eCommerce Shipping Dashboard Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.50 ▼4.78
Dashboard /wp-admin3.31 ▲0.0047.41 ▼3.84
Posts /wp-admin/edit.php3.36 ▲0.0044.51 ▼3.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.95 ▼11.63
Media Library /wp-admin/upload.php3.23 ▲0.0032.40 ▲2.07

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce UPS eCommerce Shipping Dashboard Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.64 ▼1.034.51 ▲2.4343.57 ▲1.90
Dashboard /wp-admin2,206 ▲184.85 ▼1.19104.52 ▼8.6639.82 ▼6.76
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0535.01 ▲0.1035.11 ▼2.01
Add New Post /wp-admin/post-new.php1,534 ▲1223.08 ▼0.18694.95 ▲34.9260.31 ▼6.81
Media Library /wp-admin/upload.php1,388 ▲94.18 ▼0.2194.13 ▼4.9744.50 ▲2.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: woocommerce, bulk label, fulfillment, ups, return labels...

ecommerce-shipping-dashboard-by-ups-for-woocommerce/ups.php 85% from 13 tests

The principal PHP file in "WooCommerce UPS eCommerce Shipping Dashboard Integration" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ecommerce-shipping-dashboard-by-ups-for-woocommerce.php" instead of "ups.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin273 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26386273

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods750.00%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin