83% billplz-for-wpsmartpay

Code Review | FPX Payment for WPSmartPay (Billplz)

WordPress plugin FPX Payment for WPSmartPay (Billplz) scored83%from 54 tests.

About plugin

  • Plugin page: billplz-for-wpsma...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0.2
  • WordPress version: 6.3.1
  • First release: May 10, 2022
  • Latest release: Sep 17, 2022
  • Number of updates: 10
  • Update frequency: every 13.0 days
  • Top authors: alvindcaesar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /779 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by FPX Payment for WPSmartPay (Billplz)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.11 ▼6.61
Dashboard /wp-admin3.31 ▼0.0348.16 ▼16.95
Posts /wp-admin/edit.php3.36 ▲0.0156.07 ▲3.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.89 ▼17.83
Media Library /wp-admin/upload.php3.24 ▲0.0136.36 ▼2.95

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for FPX Payment for WPSmartPay (Billplz)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.23 ▼0.301.94 ▼0.1245.64 ▲3.15
Dashboard /wp-admin2,195 ▲185.62 ▲0.0287.78 ▼13.8539.40 ▼5.14
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0039.62 ▲1.4634.39 ▼0.93
Add New Post /wp-admin/post-new.php1,526 ▼323.34 ▲0.16664.07 ▼18.1653.11 ▼11.33
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0497.65 ▼16.1542.39 ▼7.47

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/billplz-for-wpsmartpay/includes/billplz.php:336

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

billplz-for-wpsmartpay/billplz-for-wpsmartpay.php 85% from 13 tests

The principal PHP file in "FPX Payment for WPSmartPay (Billplz)" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin313 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46776313

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/billplz.png4.02KB0.98KB▼ 75.76%