94% remitano-payment-button

Code Review | Remitano Payment Button

WordPress plugin Remitano Payment Button scored 94% from 54 tests.

About plugin

  • Plugin page: remitano-payment-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jul 8, 2021
  • Latest release: Aug 12, 2021
  • Number of updates: 6
  • Update frequency: every 6.0 days
  • Top authors: remitanoofficial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 99 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼140.58ms] Passed 4 tests

Analyzing server-side resources used by Remitano Payment Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1532.59 ▲7.02
Dashboard /wp-admin3.10 ▲0.0545.33 ▲6.17
Posts /wp-admin/edit.php3.16 ▲0.0539.46 ▼5.27
Add New Post /wp-admin/post-new.php5.46 ▲0.0388.57 ▼564.80
Media Library /wp-admin/upload.php3.05 ▲0.0434.16 ▲1.59

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Remitano Payment Button: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10615.80 ▲0.347.11 ▲0.0851.47 ▲0.15
Dashboard /wp-admin2,985 ▲545.90 ▲0.02132.71 ▼3.62106.17 ▼14.43
Posts /wp-admin/edit.php2,754 ▲152.68 ▼0.0167.40 ▲3.6990.21 ▼2.15
Add New Post /wp-admin/post-new.php1,695 ▼17518.79 ▼0.67363.99 ▼21.82111.22 ▲2.11
Media Library /wp-admin/upload.php1,828 ▲215.02 ▼0.00161.49 ▲23.64118.53 ▲3.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/remitano-payment-button/includes/templates/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: remitano, ecommerce, payment button, cryptocurrency, payment

remitano-payment-button/remitano-payment-button.php Passed 13 tests

The main file in "Remitano Payment Button" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Add Remitano Payment Button with shortcode in blog post and page

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
Everything looks great! No dangerous files found in this plugin242 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4368208
JavaScript15234

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/short-white.png2.37KB1.53KB▼ 35.65%
assets/images/long-white.png4.61KB2.34KB▼ 49.30%
assets/images/long-purple.png4.02KB2.11KB▼ 47.68%
assets/images/short-purple.png2.04KB1.21KB▼ 40.61%