83% shippop-ecommerce

Code Review | SHIPPOP

WordPress plugin SHIPPOP scored83%from 54 tests.

About plugin

  • Plugin page: shippop-ecommerce
  • Plugin version: 4.5
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.9
  • WordPress version: 6.3.1
  • First release: Nov 24, 2020
  • Latest release: Nov 9, 2022
  • Number of updates: 46
  • Update frequency: every 15.7 days
  • Top authors: shippop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,855 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.38ms] Passed 4 tests

A check of server-side resources used by SHIPPOP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.86 ▼0.26
Dashboard /wp-admin3.43 ▲0.1350.51 ▼2.81
Posts /wp-admin/edit.php3.54 ▲0.1953.04 ▼1.13
Add New Post /wp-admin/post-new.php6.01 ▲0.1287.91 ▼18.90
Media Library /wp-admin/upload.php3.35 ▲0.1236.33 ▼2.66

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SHIPPOP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.29 ▼0.071.75 ▼0.0341.48 ▼8.80
Dashboard /wp-admin2,227 ▲505.55 ▼0.0283.86 ▼20.4739.18 ▼5.28
Posts /wp-admin/edit.php2,133 ▲362.17 ▲0.1441.08 ▲7.5841.53 ▲6.21
Add New Post /wp-admin/post-new.php1,547 ▲2123.73 ▲0.69664.23 ▼52.3257.14 ▼5.71
Media Library /wp-admin/upload.php1,432 ▲324.29 ▲0.1799.93 ▼18.0542.12 ▼4.81

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

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 everything seems fine, this is not 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
The following issues need your attention
  • 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SPECM_Shippop_API' not found in wp-content/plugins/shippop-ecommerce/includes/ajax-api/ajax-api-choose-courier.php:10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/shippop-ecommerce/shippop-ecommerce.php on line 676
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/shippop-ecommerce/page-table/parcel-shipping-table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/shippop-ecommerce/page-table/shippop-ecommerce-table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shippop-ecommerce/includes/class_overview.php:7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shippop-ecommerce/shippop-ecommerce.php on line 676
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shippop-ecommerce/page-table/parcel-shipping-table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/shippop-ecommerce/page-table/report-cod-table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'SPECM_Crud_Function' not found in wp-content/plugins/shippop-ecommerce/web-hooks-api.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'SPECM_Shippop_API' not found in wp-content/plugins/shippop-ecommerce/includes/ajax-api/ajax-api-address-corrector.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: Screenshot #7 (Screenshot Customer see tracking button SHIPPOP in order detail.) image required
Please take inspiration from this readme.txt

shippop-ecommerce/shippop-ecommerce.php 92% from 13 tests

This is the main PHP file of "SHIPPOP" version 4.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The plugin description must be longer than 10 characters (currently 7 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin10,448 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP186224254,386
SVG1002,671
CSS71181311,903
JavaScript8120341,121
PO File1176172367

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity30.53
▷ Minimum class complexity2.00
▷ Maximum class complexity74.00
Average method complexity4.26
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods155
▷ Static methods00.00%
▷ Public methods14291.61%
▷ Protected methods00.00%
▷ Private methods138.39%
Functions26
▷ Named functions2596.15%
▷ Anonymous functions13.85%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
42 PNG files occupy 0.75MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logistic_logo/SCGC.png7.58KB7.18KB▼ 5.27%
assets/images/logistic_logo/ECP.png262.50KB115.23KB▼ 56.10%
assets/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
assets/images/logistic_logo/NJV.png16.28KB6.26KB▼ 61.51%
assets/images/logistic_logo/JNTP.png2.17KB1.33KB▼ 38.98%