89% secudeal-payments-for-ecommerce

Code Review | Secudeal Payments for Ecommerce

WordPress plugin Secudeal Payments for Ecommerce scored89%from 54 tests.

About plugin

  • Plugin page: secudeal-payments...
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: May 29, 2023
  • Latest release: May 31, 2023
  • Number of updates: 21
  • Update frequency: every 1.1 days
  • Top authors: maximsecudeal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.44ms] Passed 4 tests

An overview of server-side resources used by Secudeal Payments for Ecommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0245.67 ▼4.01
Dashboard /wp-admin3.33 ▲0.0248.79 ▼4.50
Posts /wp-admin/edit.php3.38 ▲0.0246.68 ▼2.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.78 ▼15.23
Media Library /wp-admin/upload.php3.25 ▲0.0239.55 ▲3.01

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Secudeal Payments for Ecommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.141.63 ▼0.1843.66 ▼2.61
Dashboard /wp-admin2,198 ▲245.67 ▼0.0088.31 ▼2.0441.88 ▼3.44
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0136.84 ▲1.9733.35 ▼6.16
Add New Post /wp-admin/post-new.php1,526 ▼323.04 ▼0.09670.36 ▼14.2951.05 ▲3.77
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.01105.90 ▼0.4047.36 ▲3.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

secudeal-payments-for-ecommerce/secudeal-woocommerce.php 77% from 13 tests

The main file in "Secudeal Payments for Ecommerce" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("secudeal-payments-for-ecommerce.php" instead of "secudeal-woocommerce.php")

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
No dangerous file extensions were detected267 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP28220257
CSS1108
JavaScript1102

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity13.00
▷ Minimum class complexity8.00
▷ Maximum class complexity18.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin