90% deuna-checkout

Code Review | DEUNA Checkout

WordPress plugin DEUNA Checkout scored90%from 54 tests.

About plugin

  • Plugin page: deuna-checkout
  • Plugin version: 1.0.25
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.2-6.0
  • WordPress version: 6.3.1
  • First release: Apr 5, 2022
  • Latest release: Aug 2, 2022
  • Number of updates: 55
  • Update frequency: every 2.4 days
  • Top authors: mavelar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,839 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.26ms] Passed 4 tests

This is a short check of server-side resources used by DEUNA Checkout
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.57 ▲1.98
Dashboard /wp-admin3.33 ▲0.0346.16 ▼7.01
Posts /wp-admin/edit.php3.38 ▲0.0347.38 ▲0.86
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.04 ▼4.10
Media Library /wp-admin/upload.php3.26 ▲0.0335.10 ▲1.21

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by DEUNA Checkout
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.18 ▼0.091.66 ▲0.1242.37 ▲3.25
Dashboard /wp-admin2,195 ▲185.50 ▼0.1081.64 ▼6.0640.09 ▼1.48
Posts /wp-admin/edit.php2,082 ▼182.00 ▲0.0534.85 ▼0.3334.26 ▼0.14
Add New Post /wp-admin/post-new.php1,539 ▲1118.36 ▼4.53598.75 ▼140.7279.52 ▲21.74
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0493.57 ▼7.6841.21 ▼11.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 Passed 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
4 plugin tags: gateway, payment, deuna, checkout

deuna-checkout/deuna-checkout.php Passed 13 tests

The entry point to "DEUNA Checkout" version 1.0.25 is a PHP file that has certain tags in its header comment area
39 characters long description:
DEUNA Checkout, more users, more sales.

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
Good job! No executable or dangerous file extensions detected1,166 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP113546661,042
Markdown132063
JavaScript2142754
CSS2187

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.50
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods55
▷ Static methods23.64%
▷ Public methods5090.91%
▷ Protected methods00.00%
▷ Private methods59.09%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/img/deuna-checkout-logo-dark.png10.03KB5.01KB▼ 50.01%