73% orcuspay-for-woocommerce

Code Review | Orcus for WooCommerce

WordPress plugin Orcus for WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: orcuspay-for-wooc...
  • Plugin version: 0.1.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Jun 20, 2023
  • Latest release: Aug 26, 2023
  • Number of updates: 9
  • Update frequency: every 7.4 days
  • Top authors: orcushq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /140 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.11ms] Passed 4 tests

Server-side resources used by Orcus for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.65 ▼1.23
Dashboard /wp-admin3.31 ▼0.0445.69 ▼18.00
Posts /wp-admin/edit.php3.36 ▲0.0047.50 ▼7.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.09 ▼17.83
Media Library /wp-admin/upload.php3.23 ▲0.0037.58 ▲0.45

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 507 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Orcus for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.102.04 ▲0.1941.18 ▼1.58
Dashboard /wp-admin2,195 ▲215.58 ▼0.1187.80 ▼2.0639.25 ▼5.13
Posts /wp-admin/edit.php2,103 ▼02.04 ▼0.0138.78 ▼2.7333.60 ▼4.19
Add New Post /wp-admin/post-new.php1,545 ▲1423.13 ▲0.01690.31 ▲32.5257.24 ▲1.48
Media Library /wp-admin/upload.php1,397 ▼34.22 ▼0.04100.09 ▼20.4643.84 ▼7.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/orcuspay-for-woocommerce/vendor/svix/svix/php/tests/WebhookTest.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: orcus, bkash, rocket, nagad, woocommerce...

orcuspay-for-woocommerce/orcus-woocommerce.php 77% from 13 tests

The main PHP file in "Orcus for WooCommerce" ver. 0.1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("orcuspay-for-woocommerce.php" instead of "orcus-woocommerce.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("3.5" instead of "5.9")
  • 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

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
  • Do not distribute dangerous files with your plugin
    • .jar - Java Archive in Firefox, IE, Chrome, Safari
      • wp-content/plugins/orcuspay-for-woocommerce/vendor/svix/svix/java/gradle/wrapper/gradle-wrapper.jar
      • wp-content/plugins/orcuspay-for-woocommerce/vendor/svix/svix/kotlin/gradle/wrapper/gradle-wrapper.jar
    • .bat - Batch File in Windows
      • wp-content/plugins/orcuspay-for-woocommerce/vendor/svix/svix/java/gradlew.bat
      • wp-content/plugins/orcuspay-for-woocommerce/vendor/svix/svix/kotlin/gradlew.bat
77,786 lines of code in 455 files:
LanguageFilesBlank linesComment linesLines of code
Go1184,5914,44824,946
Rust733,1931,18020,202
JSON162014,953
C#421,0202824,183
Mustache1032043,148
Markdown2053601,613
Java24306721,477
Python7249311,230
Kotlin2415761,170
PHP182543931,154
TypeScript8181651,051
YAML2514717869
Ruby1714234607
TOML84767213
Gradle4398193
JavaScript52211184
Bourne Shell656110165
SQL203513148
XML32573100
DOS Batch121266
MSBuild script213049
Dockerfile111540
HTML12420
CSS1003
INI1002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.60
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes220.00%
Methods68
▷ Static methods2029.41%
▷ Public methods6494.12%
▷ Protected methods00.00%
▷ Private methods45.88%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants233.33%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/orcus.png4.39KB2.56KB▼ 41.67%
vendor/svix/svix/static-assets/backed-by.png9.62KB6.54KB▼ 31.93%