89% aw-woocommerce-kode-pembayaran

Code Review | AW WooCommerce Kode Pembayaran

WordPress plugin AW WooCommerce Kode Pembayaran scored89%from 54 tests.

About plugin

  • Plugin page: aw-woocommerce-ko...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.3.1
  • WordPress version: 6.3.1
  • First release: Mar 2, 2016
  • Latest release: Feb 13, 2020
  • Number of updates: 10
  • Update frequency: every 144.6 days
  • Top authors: AgenWebsite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /7,201 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
This plugin's installer ran successfully

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

Server-side resources used by AW WooCommerce Kode Pembayaran
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.95 ▲2.51
Dashboard /wp-admin3.32 ▲0.0146.30 ▼3.00
Posts /wp-admin/edit.php3.37 ▲0.0144.59 ▼0.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.99 ▼0.71
Media Library /wp-admin/upload.php3.25 ▲0.0133.76 ▲1.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for AW WooCommerce Kode Pembayaran
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▲0.101.71 ▲0.1744.87 ▲4.21
Dashboard /wp-admin2,198 ▲175.63 ▼0.0585.06 ▼10.5037.88 ▼3.53
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0134.28 ▲0.3534.18 ▼6.05
Add New Post /wp-admin/post-new.php1,526 ▼223.27 ▼0.04695.16 ▲5.8851.71 ▼5.32
Media Library /wp-admin/upload.php1,400 ▼34.33 ▲0.1694.50 ▼7.5443.92 ▼0.96

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

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

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

aw-woocommerce-kode-pembayaran/aw-woocommerce-kode-pembayaran.php 92% from 13 tests

"AW WooCommerce Kode Pembayaran" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "4.0.0")

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
No dangerous file extensions were detected643 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4129309505
CSS26193
Markdown214039
JavaScript1206

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity17.00
▷ Minimum class complexity7.00
▷ Maximum class complexity32.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods3394.29%
▷ Protected methods12.86%
▷ Private methods12.86%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/upgrade-728x90.png63.73KB24.31KB▼ 61.86%
assets/images/logo.png5.43KB3.12KB▼ 42.54%