Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.90ms] Passed 4 tests
A check of server-side resources used by ccAvenue gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.52 ▼1.35 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.28 ▼6.22 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.19 ▲1.11 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 86.01 ▼12.28 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.10 ▼3.73 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by ccAvenue gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▲0.09 | 1.71 ▼0.13 | 44.52 ▲3.52 |
Dashboard /wp-admin | 2,195 ▲21 | 5.67 ▲0.14 | 85.83 ▲0.69 | 41.70 ▲1.55 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.02 | 35.57 ▼6.45 | 37.15 ▼4.88 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.24 ▲0.13 | 678.59 ▼41.72 | 64.58 ▲4.12 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▲0.06 | 111.56 ▼1.06 | 48.22 ▼0.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ccavenue-gateway-for-woocommerce/index.php:20
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (WooCommerce Checkout Setting page with selected ccAvenue.), #2 (Enter Merchant Id and Working Keys here.), #3 (Checkout Page.), #4 (Redirection Page.), #5 (Confirmation Page.)
ccavenue-gateway-for-woocommerce/index.php 85% from 13 tests
The main file in "ccAvenue gateway for WooCommerce" v. 1.0.4 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:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("ccavenue-gateway-for-woocommerce.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
There were no executable files found in this plugin403 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 59 | 20 | 403 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
6 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 9.95KB | 4.39KB | ▼ 55.89% |
screenshot-3.png | 15.51KB | 6.92KB | ▼ 55.42% |
screenshot-2.png | 18.24KB | 9.37KB | ▼ 48.63% |
screenshot-4.png | 11.58KB | 5.96KB | ▼ 48.52% |
screenshot-1.png | 20.92KB | 10.97KB | ▼ 47.57% |