94% woo-droppay

Code Review | WooCommerce DropPay

WordPress plugin WooCommerce DropPay scored 94% from 54 tests.

About plugin

  • Plugin page: woo-droppay
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 5.8.1
  • First release: Jan 12, 2018
  • Latest release: Jan 12, 2018
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: oraziogranato (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,718 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by WooCommerce DropPay
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0145.08 ▲14.52
Dashboard /wp-admin3.07 ▲0.0152.86 ▲9.22
Posts /wp-admin/edit.php3.12 ▲0.0148.31 ▲1.03
Add New Post /wp-admin/post-new.php5.43 ▼0.0098.37 ▼540.85
Media Library /wp-admin/upload.php3.01 ▲0.0031.64 ▼10.09

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: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce DropPay
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.92 ▲0.219.52 ▼0.8054.43 ▼2.58
Dashboard /wp-admin2,970 ▲366.05 ▲0.07147.90 ▼3.27116.14 ▼5.88
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0171.31 ▲1.08100.30 ▲4.91
Add New Post /wp-admin/post-new.php1,683 ▼37418.74 ▼0.56380.36 ▲4.65109.31 ▼8.79
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.00161.28 ▲7.97124.30 ▲3.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-droppay/woo-droppay.php:13

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: droppay, payment method, woocommerce

woo-droppay/woo-droppay.php Passed 13 tests

"WooCommerce DropPay" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
89 characters long description:
With DropPay you can send and receive money with your smartphone and make payments safely

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin505 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP47882344
JavaScript1221087
PO File1101246
CSS15028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.33
▷ Minimum class complexity10.00
▷ Maximum class complexity14.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/close.png9.57KB3.89KB▼ 59.31%
logo.png9.88KB2.81KB▼ 71.54%