89% billingotomatis-payment-gateway-indonesia

Code Review | Billingotomatis - Tren Otomatisasi Indonesia

WordPress plugin Billingotomatis - Tren Otomatisasi Indonesia scored89%from 54 tests.

About plugin

  • Plugin page: billingotomatis-p...
  • Plugin version: 20210107...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Mar 24, 2016
  • Latest release: Jan 7, 2021
  • Number of updates: 41
  • Update frequency: every 42.7 days
  • Top authors: ahlul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /6,086 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Billingotomatis - Tren Otomatisasi Indonesia
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.35 ▼2.47
Dashboard /wp-admin3.34 ▼0.0052.81 ▼19.81
Posts /wp-admin/edit.php3.40 ▲0.0453.63 ▲1.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.41 ▼22.24
Media Library /wp-admin/upload.php3.27 ▲0.0442.26 ▲5.96

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
bilo_version
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Billingotomatis - Tren Otomatisasi Indonesia
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.43 ▲0.051.70 ▼0.3444.78 ▼2.40
Dashboard /wp-admin2,203 ▲235.64 ▼0.0288.96 ▼5.7974.66 ▲26.83
Posts /wp-admin/edit.php2,117 ▲142.05 ▲0.0438.19 ▼1.0736.15 ▼0.25
Add New Post /wp-admin/post-new.php1,543 ▲823.53 ▲5.24671.83 ▲13.70105.41 ▲23.98
Media Library /wp-admin/upload.php1,420 ▲174.16 ▼0.07101.73 ▼0.0471.56 ▲26.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • bilo_version
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

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

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

billingotomatis-payment-gateway-indonesia/billingotomatis.php 85% from 13 tests

The main PHP file in "Billingotomatis - Tren Otomatisasi Indonesia" ver. 20210107... adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("billingotomatis-payment-gateway-indonesia.php" instead of "billingotomatis.php")
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "20210107...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,238 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS331382,417
SVG100655
PHP22118163
JavaScript1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
6 PNG files occupy 0.29MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/screenshoot/screenshot-1.png58.21KB18.71KB▼ 67.86%
assets/img/screenshoot/screenshot-4.png53.30KB17.14KB▼ 67.84%
screenshot-1.png58.21KB18.71KB▼ 67.86%
assets/img/icon.png2.84KB0.17KB▼ 93.95%
assets/img/screenshoot/screenshot-2.png68.87KB22.81KB▼ 66.88%