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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.65 ▼1.23 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.69 ▼18.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.50 ▼7.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.09 ▼17.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.28 ▼0.10 | 2.04 ▲0.19 | 41.18 ▼1.58 |
Dashboard /wp-admin | 2,195 ▲21 | 5.58 ▼0.11 | 87.80 ▼2.06 | 39.25 ▼5.13 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.04 ▼0.01 | 38.78 ▼2.73 | 33.60 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.13 ▲0.01 | 690.31 ▲32.52 | 57.24 ▲1.48 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▼0.04 | 100.09 ▼20.46 | 43.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
- > PHP Fatal error
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
- .jar - Java Archive in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Go | 118 | 4,591 | 4,448 | 24,946 |
Rust | 73 | 3,193 | 1,180 | 20,202 |
JSON | 16 | 2 | 0 | 14,953 |
C# | 42 | 1,020 | 282 | 4,183 |
Mustache | 10 | 320 | 4 | 3,148 |
Markdown | 20 | 536 | 0 | 1,613 |
Java | 24 | 306 | 72 | 1,477 |
Python | 7 | 249 | 31 | 1,230 |
Kotlin | 24 | 157 | 6 | 1,170 |
PHP | 18 | 254 | 393 | 1,154 |
TypeScript | 8 | 181 | 65 | 1,051 |
YAML | 25 | 147 | 17 | 869 |
Ruby | 17 | 142 | 34 | 607 |
TOML | 8 | 47 | 67 | 213 |
Gradle | 4 | 39 | 8 | 193 |
JavaScript | 5 | 22 | 11 | 184 |
Bourne Shell | 6 | 56 | 110 | 165 |
SQL | 20 | 35 | 13 | 148 |
XML | 3 | 25 | 73 | 100 |
DOS Batch | 1 | 21 | 2 | 66 |
MSBuild script | 2 | 13 | 0 | 49 |
Dockerfile | 1 | 11 | 5 | 40 |
HTML | 1 | 2 | 4 | 20 |
CSS | 1 | 0 | 0 | 3 |
INI | 1 | 0 | 0 | 2 |
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 code | 0.32 |
Average class complexity | 12.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 2 | 20.00% |
Methods | 68 | |
▷ Static methods | 20 | 29.41% |
▷ Public methods | 64 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.88% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 2 | 33.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/orcus.png | 4.39KB | 2.56KB | ▼ 41.67% |
vendor/svix/svix/static-assets/backed-by.png | 9.62KB | 6.54KB | ▼ 31.93% |