83% asm-manager

Code Review | Advanced Shipping Manager

WordPress plugin Advanced Shipping Manager scored 83% from 54 tests.

About plugin

  • Plugin page: asm-manager
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 7.0.0+
  • WordPress version: 6.3.1
  • First release: Jun 13, 2018
  • Latest release: Sep 14, 2023
  • Number of updates: 25
  • Update frequency: every 76.9 days
  • Top authors: advshipmgr (80%)sandysaini (24%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active / 1,913 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.18ms] Passed 4 tests

A check of server-side resources used by Advanced Shipping Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.85 ▼9.01
Dashboard /wp-admin3.31 ▲0.0146.73 ▼1.96
Posts /wp-admin/edit.php3.36 ▲0.0044.96 ▼3.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.92 ▼13.78
Media Library /wp-admin/upload.php3.23 ▲0.0037.76 ▲4.20

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Shipping Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.121.71 ▲0.0539.72 ▼4.17
Dashboard /wp-admin2,203 ▲154.87 ▼0.98135.34 ▲17.6041.29 ▼4.02
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0238.49 ▼3.3733.54 ▲0.29
Add New Post /wp-admin/post-new.php1,533 ▼018.23 ▼5.07615.76 ▲14.1572.67 ▲14.10
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0496.49 ▼5.7944.23 ▲0.42

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Asm_Shipping_Field' not found in wp-content/plugins/asm-manager/includes/asmplsww_product_field.php:315
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/asm-manager/includes/asmplsww_shipping_api.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/asm-manager/includes/asmplsww_admin_field.php:13
    • > PHP Notice
      Trying to get property 'cart' of non-object in wp-content/plugins/asm-manager/includes/asmplsww_query_live.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_cart() on null in wp-content/plugins/asm-manager/includes/asmplsww_query_live.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in asm-manager/assets to your readme.txt
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

asm-manager/asmplsww.php 92% from 13 tests

"Advanced Shipping Manager" version 1.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("asm-manager.php" instead of "asmplsww.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin778 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP615766778

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.75
▷ Minimum class complexity5.00
▷ Maximum class complexity9.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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