90% woogosend

Code Review | WooGoSend

WordPress plugin WooGoSend scored90%from 54 tests.

About plugin

  • Plugin page: woogosend
  • 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 10, 2018
  • Latest release: May 16, 2020
  • Number of updates: 43
  • Update frequency: every 19.9 days
  • Top authors: sofyansitorus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /7,104 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.69ms] Passed 4 tests

This is a short check of server-side resources used by WooGoSend
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.95 ▼0.69
Dashboard /wp-admin3.31 ▲0.0044.60 ▼2.64
Posts /wp-admin/edit.php3.36 ▲0.0049.14 ▲2.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.08 ▼1.81
Media Library /wp-admin/upload.php3.23 ▲0.0034.54 ▲2.40

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooGoSend
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.60 ▼0.771.70 ▼0.0145.16 ▲4.44
Dashboard /wp-admin2,206 ▲185.92 ▲0.05105.64 ▲6.1738.36 ▼5.19
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0343.07 ▲1.8034.02 ▼2.34
Add New Post /wp-admin/post-new.php1,536 ▲2223.42 ▲5.72574.45 ▼94.7357.92 ▲5.76
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.1797.12 ▲1.1741.84 ▼1.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: gosend-shipping, gojek, gosend, woocommerce-shipping, woocommerce...

woogosend/woogosend.php 92% from 13 tests

The main PHP file in "WooGoSend" ver. 1.4.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Requires at least: The required version number did not 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 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,842 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP134521,0611,835
JavaScript416395795
CSS2286212

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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.62
Average class complexity31.67
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes222.22%
▷ Concrete classes777.78%
▷ Final classes00.00%
Methods72
▷ Static methods45.56%
▷ Public methods5475.00%
▷ Protected methods79.72%
▷ Private methods1115.28%
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

All PNG images should be compressed to minimize bandwidth usage for end users
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.png2.49KB1.56KB▼ 37.47%
assets/img/marker-lg.png36.97KB15.91KB▼ 56.96%