78% shiplemon-shipping

Code Review | Shiplemon Shipping for WooComerce

WordPress plugin Shiplemon Shipping for WooComerce scored 78% from 54 tests.

About plugin

  • Plugin page: shiplemon-shipping
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2022
  • Latest release: Aug 12, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: shiplemon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.13MB] [CPU: ▼9.67ms] Passed 4 tests

Analyzing server-side resources used by Shiplemon Shipping for WooComerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0435.53 ▼16.57
Dashboard /wp-admin3.31 ▲0.0047.73 ▲0.15
Posts /wp-admin/edit.php3.36 ▼0.4947.96 ▼7.56
Add New Post /wp-admin/post-new.php5.89 ▼0.0096.42 ▼14.69
Media Library /wp-admin/upload.php3.23 ▼0.0035.88 ▲1.50

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Shiplemon Shipping for WooComerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9314.74 ▲0.231.85 ▲0.2743.05 ▲4.79
Dashboard /wp-admin2,203 ▲125.82 ▼0.06109.15 ▼6.5740.31 ▼6.68
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0143.22 ▲6.6435.96 ▼3.64
Add New Post /wp-admin/post-new.php1,533 ▲1422.92 ▼0.10596.62 ▼81.8954.81 ▼11.64
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0198.12 ▼5.2541.44 ▼5.08

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/shiplemon-shipping/shiplemon-shipping.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shiplemon-shipping/includes/shipping-method-hooks.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/shiplemon-shipping/includes/class-shiplemon-wc-shipping-method.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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: The official readme.txt is a good inspiration

shiplemon-shipping/shiplemon-shipping.php Passed 13 tests

The entry point to "Shiplemon Shipping for WooComerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
67 characters long description:
Shipping made easy. Just install the plugin and let us do the rest.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin524 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP590186419
PO File1293295
Markdown12010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity5.17
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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 were not PNG files found in your plugin