WordPress plugin WC - APG Weight Shipping scored10%from 54 tests.

About plugin

  • Plugin page: woocommerce-apg-w...
  • Plugin version: 2.6.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Nov 24, 2013
  • Latest release: Jun 15, 2023
  • Number of updates: 213
  • Update frequency: every 16.4 days
  • Top authors: artprojectgroup (100%)

Code review

54 tests

User reviews

46 reviews

Install metrics

8,000+ active /199,719 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory

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

Analyzing server-side resources used by WC - APG Weight Shipping
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.99 ▼6.83
Dashboard /wp-admin3.31 ▲0.0046.39 ▼0.83
Posts /wp-admin/edit.php3.36 ▲0.0047.31 ▲1.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.79 ▼23.27
Media Library /wp-admin/upload.php3.23 ▲0.0034.04 ▲0.20

Server storage [IO: ▲1.69MB] [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: 36 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

WC - APG Weight Shipping: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.37 ▼1.064.18 ▲2.4141.18 ▼5.95
Dashboard /wp-admin2,206 ▲185.86 ▼0.01106.95 ▼12.3239.49 ▼5.37
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0344.96 ▲6.7432.63 ▼2.24
Add New Post /wp-admin/post-new.php1,514 ▼1517.73 ▼0.61651.13 ▼4.3351.38 ▼7.72
Media Library /wp-admin/upload.php1,385 ▲34.21 ▲0.0595.30 ▼12.1343.06 ▼1.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/includes/formulario.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/includes/cuadro-informacion.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/includes/formulario.php on line 3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/includes/formulario.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% 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: Please delete some tags, you are using 19 tag instead of maximum 10
Please take inspiration from this readme.txt

woocommerce-apg-weight-and-postcodestatecountry-shipping/apg-shipping.php 85% from 13 tests

Analyzing the main PHP file in "WC - APG Weight Shipping" version 2.6.0.1
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 614 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-apg-weight-and-postcodestatecountry-shipping.php" instead of "apg-shipping.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,464 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP71311201,063
CSS21022665
Markdown11810459
SVG200270
JavaScript1007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.72
Average class complexity203.00
▷ Minimum class complexity203.00
▷ Maximum class complexity203.00
Average method complexity13.62
▷ Minimum method complexity1.00
▷ Maximum method complexity99.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin