84% dewa-kirim-woocommerce-gojek

Code Review | Dewa Kirim - WooCommerce Gojek / Gosend

WordPress plugin Dewa Kirim - WooCommerce Gojek / Gosend scored84%from 54 tests.

About plugin

  • Plugin page: dewa-kirim-woocom...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Sep 28, 2018
  • Latest release: Sep 28, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: dewakirim (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,108 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Dewa Kirim - WooCommerce Gojek / Gosend
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.93 ▼0.68
Dashboard /wp-admin3.32 ▲0.0150.05 ▼6.91
Posts /wp-admin/edit.php3.37 ▲0.0151.93 ▲1.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.92 ▼9.78
Media Library /wp-admin/upload.php3.24 ▲0.0039.46 ▼3.56

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dewa Kirim - WooCommerce Gojek / Gosend
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.43 ▼1.192.00 ▲0.2141.10 ▼1.52
Dashboard /wp-admin2,206 ▲155.88 ▲0.98105.06 ▼5.5541.19 ▲0.43
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0139.51 ▲3.6533.63 ▼0.22
Add New Post /wp-admin/post-new.php1,533 ▲1323.26 ▲0.23649.56 ▼11.3454.92 ▼20.38
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0097.55 ▼3.9540.48 ▼3.58

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× 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/dewa-kirim-woocommerce-gojek/includes/shipping-frontend.php:50

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: tracking, delivery, woocommerce, shipping, carrier

dewa-kirim-woocommerce-gojek/woocommerce-gojek.php 85% from 13 tests

The entry point to "Dewa Kirim - WooCommerce Gojek / Gosend" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dewa-kirim-woocommerce-gojek.php" instead of "woocommerce-gojek.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)

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
Success! There were no dangerous files found in this plugin1,211 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32081141,010
CSS2253201

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity4.83
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
8 compressed PNG files occupy 0.90MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-7.png259.04KB261.16KB0.00%
screenshot-4.png39.22KB39.30KB0.00%
screenshot-3.png300.36KB302.07KB0.00%
screenshot-6.png93.76KB94.14KB0.00%
assets/img/pinpoint.png17.47KB9.11KB▼ 47.84%