89% woongkir

Code Review | Woongkir

WordPress plugin Woongkir scored 89% from 54 tests.

About plugin

  • Plugin page: woongkir
  • Plugin version: 1.3.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 12, 2018
  • Latest release: Jan 8, 2023
  • Number of updates: 105
  • Update frequency: every 17.3 days
  • Top authors: sofyansitorus (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

5,000+ active / 59,569 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Woongkir
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.89 ▼14.53
Dashboard /wp-admin3.31 ▲0.0046.70 ▼4.01
Posts /wp-admin/edit.php3.36 ▲0.0047.65 ▲3.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.76 ▲9.00
Media Library /wp-admin/upload.php3.23 ▲0.0037.60 ▲1.77

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Woongkir
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.56 ▼0.731.64 ▼0.0939.38 ▼4.71
Dashboard /wp-admin2,206 ▲574.86 ▼0.82109.26 ▼0.5542.35 ▼1.13
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0439.61 ▲5.9735.66 ▲0.72
Add New Post /wp-admin/post-new.php1,547 ▲3323.16 ▲5.75700.48 ▲25.8753.74 ▼1.14
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.0993.39 ▼7.1642.37 ▼3.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: pcp express, jne, rpx, tiki, pos indonesia

woongkir/woongkir.php 85% from 13 tests

"Woongkir" version 1.3.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "3.0.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 406 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin4,275 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP377702,9332,964
JavaScript63172131,120
CSS260187
JSON4004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity11.56
▷ Minimum class complexity1.00
▷ Maximum class complexity160.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes34
▷ Abstract classes25.88%
▷ Concrete classes3294.12%
▷ Final classes00.00%
Methods158
▷ Static methods21.27%
▷ Public methods13987.97%
▷ Protected methods95.70%
▷ Private methods106.33%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin