84% woocommerce-webship-integrated-quoting

Code Review | Woocommerce Webship Integrated Quoting

WordPress plugin Woocommerce Webship Integrated Quoting scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-websh...
  • Plugin version: 1.91
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: May 2, 2017
  • Latest release: Nov 27, 2019
  • Number of updates: 22
  • Update frequency: every 42.7 days
  • Top authors: rocksolidinternetsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,321 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.42ms] Passed 4 tests

An overview of server-side resources used by Woocommerce Webship Integrated Quoting
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.05 ▼5.44
Dashboard /wp-admin3.33 ▼0.0244.36 ▼18.36
Posts /wp-admin/edit.php3.38 ▲0.0246.99 ▲5.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.55 ▼14.87
Media Library /wp-admin/upload.php3.25 ▲0.0235.21 ▲4.99

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce Webship Integrated Quoting
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.45 ▼0.141.73 ▼0.2339.87 ▼3.97
Dashboard /wp-admin2,203 ▲185.82 ▼0.04105.43 ▲5.9639.69 ▲1.30
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0436.05 ▼5.6535.22 ▼1.63
Add New Post /wp-admin/post-new.php1,533 ▼023.24 ▼0.38621.97 ▲18.6156.31 ▼5.86
Media Library /wp-admin/upload.php1,391 ▲94.15 ▼0.1295.68 ▼1.5839.84 ▼2.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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 | 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
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-webship-integrated-quoting/woocommerce-webship-integrated-quoting.php on line 8
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-webship-integrated-quoting/woocommerce-webship-integrated-quoting.php on line 8
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woocommerce-webship-integrated-quoting/woocommerce-webship-integrated-quoting.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

woocommerce-webship-integrated-quoting/woocommerce-webship-integrated-quoting.php Passed 13 tests

This is the main PHP file of "Woocommerce Webship Integrated Quoting" version 1.91, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
112 characters long description:
This is a Wordpress plugin that connects to WooCommerce and gets shipping quotes from Webship shipping services.

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 plugin129 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13432129

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin