89% wc-fedex-shipping

Code Review | Advanced FedEx Shipping - Live Rates & Address Validation for WooCommerce

WordPress plugin Advanced FedEx Shipping - Live Rates & Address Validation for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-fedex-shipping
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 24, 2021
  • Latest release: Aug 21, 2023
  • Number of updates: 23
  • Update frequency: every 38.3 days
  • Top authors: oneteamsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.71ms] Passed 4 tests

Server-side resources used by Advanced FedEx Shipping - Live Rates & Address Validation for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.1038.40 ▼3.28
Dashboard /wp-admin3.40 ▲0.0545.58 ▼10.66
Posts /wp-admin/edit.php3.51 ▲0.1646.37 ▲0.29
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.80 ▼3.44
Media Library /wp-admin/upload.php3.32 ▲0.0932.28 ▼1.46

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced FedEx Shipping - Live Rates & Address Validation for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.401.61 ▼0.6138.73 ▼13.15
Dashboard /wp-admin2,206 ▲214.85 ▼0.07100.16 ▼14.3438.36 ▼3.29
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0235.27 ▼6.4635.82 ▼0.09
Add New Post /wp-admin/post-new.php1,544 ▲3018.27 ▲0.83600.69 ▼65.5755.50 ▼5.95
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0595.85 ▼5.5442.07 ▼2.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt is a good inspiration

wc-fedex-shipping/wc-fedex-shipping.php 92% from 13 tests

The entry point to "Advanced FedEx Shipping - Live Rates & Address Validation for WooCommerce" version 1.2.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Plugin Name: A shorter plugin name is better (currently 73 characters long instead of max. 70)

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
No dangerous file extensions were detected5,501 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP241,2872745,501

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity32.14
▷ Minimum class complexity1.00
▷ Maximum class complexity217.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes22
▷ Abstract classes522.73%
▷ Concrete classes1777.27%
▷ Final classes00.00%
Methods343
▷ Static methods20.58%
▷ Public methods17450.73%
▷ Protected methods16347.52%
▷ Private methods61.75%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/1TeamSoftware-logo.png14.55KB4.50KB▼ 69.05%
assets/images/1TeamSoftware-icon.png0.59KB0.75KB0.00%