90% wc-prabhu-pay

Code Review | Add Prabhu Pay Payment In WooCommerce

WordPress plugin Add Prabhu Pay Payment In WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wc-prabhu-pay
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Nov 25, 2021
  • Latest release: Nov 25, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: sanzeeb3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /431 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
Installer ran successfully

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

A check of server-side resources used by Add Prabhu Pay Payment In WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.64 ▼1.57
Dashboard /wp-admin3.31 ▲0.0144.00 ▼8.62
Posts /wp-admin/edit.php3.36 ▲0.0149.61 ▲4.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.15 ▼6.40
Media Library /wp-admin/upload.php3.23 ▲0.0136.96 ▲4.36

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Add Prabhu Pay Payment In WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.021.69 ▲0.0238.20 ▼0.01
Dashboard /wp-admin2,206 ▲185.78 ▼0.0398.53 ▼17.1737.62 ▼6.81
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0038.45 ▼0.0934.59 ▲2.21
Add New Post /wp-admin/post-new.php1,542 ▲2218.44 ▼4.68604.13 ▼87.1167.11 ▲4.59
Media Library /wp-admin/upload.php1,385 ▼64.15 ▼0.05128.25 ▲30.8548.96 ▲1.77

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
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: prabhu pay, woocommerce, store, payments

wc-prabhu-pay/wc-prabhu-pay.php 92% from 13 tests

The entry point to "Add Prabhu Pay Payment In WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin301 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP594210301

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.00
▷ Minimum class complexity5.00
▷ Maximum class complexity21.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1285.71%
▷ Protected methods214.29%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/prabhu-pay.png64.72KB23.17KB▼ 64.19%