99% woo-apuspayments

Code Review | ApusPayments

WordPress plugin ApusPayments scored 99% from 54 tests.

About plugin

  • Plugin page: woo-apuspayments
  • Plugin version: 2.13.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9
  • WordPress version: 5.8.1
  • First release: Oct 5, 2018
  • Latest release: Oct 5, 2018
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: apuspayments (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 286 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼141.29ms] Passed 4 tests

Server-side resources used by ApusPayments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.11 ▲13.63
Dashboard /wp-admin3.06 ▲0.0147.70 ▲0.04
Posts /wp-admin/edit.php3.12 ▲0.0145.53 ▼0.84
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.67 ▼560.34
Media Library /wp-admin/upload.php3.01 ▲0.0128.69 ▼4.03

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ApusPayments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲10215.91 ▲0.359.87 ▼0.6946.74 ▲2.81
Dashboard /wp-admin2,989 ▲525.93 ▼0.05140.99 ▼10.67108.91 ▼1.52
Posts /wp-admin/edit.php2,760 ▲212.71 ▼0.0169.59 ▲3.1192.22 ▲3.59
Add New Post /wp-admin/post-new.php1,695 ▲8018.69 ▼2.79396.08 ▲84.37102.69 ▼0.83
Media Library /wp-admin/upload.php1,826 ▲755.03 ▲0.01151.14 ▲18.86120.00 ▲1.11

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
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: criptocurrencies, ethereum, decred, apuspayments, payment...

woo-apuspayments/woocommerce-apuspayments.php 77% from 13 tests

The main PHP file in "ApusPayments" ver. 2.13.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-apuspayments.php" instead of "woocommerce-apuspayments.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin925 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14178366772
CSS2111105
JavaScript4141648

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity25.00
▷ Minimum class complexity2.00
▷ Maximum class complexity51.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods43
▷ Static methods716.28%
▷ Public methods2865.12%
▷ Protected methods1432.56%
▷ Private methods12.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/apuspayments.png47.17KB1.12KB▼ 97.62%