73% shipments-with-pulpo

Code Review | WMS with Pulpo WMS

WordPress plugin WMS with Pulpo WMS scored 73% from 54 tests.

About plugin

  • Plugin page: shipments-with-pulpo
  • Plugin version: 1.0.23
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: May 10, 2023
  • Latest release: Aug 2, 2023
  • Number of updates: 40
  • Update frequency: every 2.8 days
  • Top authors: infotwentic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 300 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▲0.31ms] Passed 4 tests

This is a short check of server-side resources used by WMS with Pulpo WMS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4743.73 ▲1.64
Dashboard /wp-admin3.77 ▲0.4648.59 ▲3.22
Posts /wp-admin/edit.php3.82 ▲0.4650.63 ▼1.75
Add New Post /wp-admin/post-new.php6.30 ▲0.4286.53 ▼1.87
Media Library /wp-admin/upload.php3.63 ▲0.4037.96 ▲5.00

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 39 new files
Database: 1 new table, 7 new options
New tables
wp_pulpo_shipping_queue
New WordPress options
theysaidso_admin_options
widget_recent-comments
pulpo_shipping_db_version
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

WMS with Pulpo WMS: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲17713.58 ▼0.806.38 ▲4.7041.50 ▼7.82
Dashboard /wp-admin2,210 ▲195.84 ▼0.0495.45 ▼8.2539.35 ▼4.18
Posts /wp-admin/edit.php2,096 ▲42.01 ▼0.0339.41 ▼1.5636.10 ▲0.55
Add New Post /wp-admin/post-new.php1,518 ▲423.46 ▲5.87624.94 ▼44.7356.62 ▲2.71
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.0292.65 ▼4.2539.31 ▼2.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_pulpo_shipping_queue
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • pulpo_shipping_db_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/shipments-with-pulpo/admin/partials/pulpo-settings-mode.php:4
    • > PHP Notice
      Undefined variable: service in wp-content/plugins/shipments-with-pulpo/admin/partials/pulpo-settings-actions.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/shipments-with-pulpo/admin/partials/pulpo-settings-main.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shipments-with-pulpo/admin/partials/pulpo-messages-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_webhooks() on null in wp-content/plugins/shipments-with-pulpo/admin/partials/pulpo-settings-actions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/shipments-with-pulpo/admin/partials/pulpo-settings-logs.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/shipments-with-pulpo/includes/class-wc-shipping-pulpo.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (General settings), #2 (Test environment settings), #3 (Production environment settings), #4 (Log page)
You can take inspiration from this readme.txt

shipments-with-pulpo/pulpo_shipping.php 85% from 13 tests

The principal PHP file in "WMS with Pulpo WMS" v. 1.0.23 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shipments-with-pulpo.php" instead of "pulpo_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
Good job! No executable or dangerous file extensions detected2,420 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP275555402,333
PO File134281
JavaScript24546
CSS2080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity20.12
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods114
▷ Static methods97.89%
▷ Public methods9785.09%
▷ Protected methods97.89%
▷ Private methods87.02%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.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