Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.87ms] Passed 4 tests
This is a short check of server-side resources used by Cowryz - Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.17 ▼1.28 |
Dashboard /wp-admin | 3.39 ▲0.04 | 51.87 ▼12.67 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.97 ▼2.71 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 93.33 ▼14.82 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.71 ▲2.68 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cowryz - Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.26 ▼1.04 | 1.61 ▼0.05 | 40.42 ▲0.39 |
Dashboard /wp-admin | 2,224 ▲18 | 4.84 ▼1.01 | 105.08 ▼4.51 | 38.88 ▼7.07 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.05 | 41.04 ▲2.74 | 36.55 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,554 ▲23 | 18.45 ▼4.55 | 662.98 ▲43.47 | 50.94 ▼2.58 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.26 ▲0.00 | 97.57 ▼10.59 | 45.55 ▼2.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cowryz-wallet-payemnt/index.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== cowryz-wallet-payemnt ===
) - Screenshots: These screenshots require images: #1 (WooCommerce payment gateway setting page), #2 (Cowryz Wallet Payment setting page), #3 (Cowryz Wallet Payment gateway option at the checkout page)
cowryz-wallet-payemnt/index.php 85% from 13 tests
The primary PHP file in "Cowryz - Woocommerce" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 185 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cowryz-wallet-payemnt.php" instead of "index.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
Good job! No executable or dangerous file extensions detected448 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 49 | 448 |
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 code | 0.23 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 34.21KB | 15.06KB | ▼ 55.99% |
screenshot-1.png | 40.32KB | 17.62KB | ▼ 56.31% |
screenshot-3.png | 39.58KB | 14.92KB | ▼ 62.31% |
images/logo.png | 9.54KB | 5.20KB | ▼ 45.49% |