90% woograbexpress

Code Review | WooGrabExpress

WordPress plugin WooGrabExpress scored90%from 54 tests.

About plugin

  • Plugin page: woograbexpress
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: May 16, 2020
  • Number of updates: 33
  • Update frequency: every 26.0 days
  • Top authors: sofyansitorus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /3,391 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.52ms] Passed 4 tests

This is a short check of server-side resources used by WooGrabExpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0348.89 ▲9.97
Dashboard /wp-admin3.34 ▲0.0351.69 ▼2.79
Posts /wp-admin/edit.php3.39 ▲0.0350.38 ▼0.44
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.90 ▼8.76
Media Library /wp-admin/upload.php3.26 ▲0.0337.33 ▲1.91

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooGrabExpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.23 ▼0.162.03 ▲0.3245.31 ▲1.20
Dashboard /wp-admin2,195 ▲155.49 ▼0.1796.32 ▼2.3442.00 ▼3.12
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0434.17 ▼5.3336.73 ▲1.47
Add New Post /wp-admin/post-new.php1,526 ▼223.34 ▲0.21658.05 ▼28.4961.03 ▲5.69
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0299.77 ▲0.0145.82 ▼3.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: grab-shipping, grabexpress, ojek-shipping, woocommerce-shipping

woograbexpress/woograbexpress.php 92% from 13 tests

The main file in "WooGrabExpress" v. 1.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("4.8" instead of "3.0.0")

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 plugin2,822 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP124481,0211,815
JavaScript416395795
CSS2286212

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity35.50
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity5.12
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes225.00%
▷ Concrete classes675.00%
▷ Final classes00.00%
Methods70
▷ Static methods45.71%
▷ Public methods5274.29%
▷ Protected methods710.00%
▷ Private methods1115.71%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/marker-lg.png36.97KB15.91KB▼ 56.96%
assets/img/marker.png2.49KB1.56KB▼ 37.47%