Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼13.09ms] Passed 4 tests
A check of server-side resources used by CardlessPay by Cardless Payment Processing
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.88 ▼2.01 |
Dashboard /wp-admin | 3.54 ▲0.24 | 36.68 ▼14.45 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 37.16 ▼7.99 |
Add New Post /wp-admin/post-new.php | 5.79 ▼0.10 | 73.77 ▼24.47 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 32.41 ▼5.46 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by CardlessPay by Cardless Payment Processing
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,478 ▼1,283 | 12.44 ▼1.73 | 1.77 ▲0.17 | 39.85 ▲0.39 |
Dashboard /wp-admin | 871 ▼1,310 | 1.40 ▼4.33 | 15.56 ▼95.59 | 19.13 ▼21.67 |
Posts /wp-admin/edit.php | 882 ▼1,218 | 1.54 ▼0.48 | 7.72 ▼30.93 | 19.66 ▼13.65 |
Add New Post /wp-admin/post-new.php | 605 ▼921 | 1.75 ▼21.31 | 26.05 ▼587.35 | 6.68 ▼83.36 |
Media Library /wp-admin/upload.php | 767 ▼633 | 1.75 ▼2.47 | 23.07 ▼82.64 | 20.36 ▼28.23 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cardlesspay-by-cardless-paytech/includes/cardless_extra_functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cardlesspay-by-cardless-paytech/includes/cardless_settings.php:240
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #2 in cardlesspay-by-cardless-paytech/assets to your readme.txt
cardlesspay-by-cardless-paytech/woocommerce-gateway-cardless-money.php 85% from 13 tests
Analyzing the main PHP file in "CardlessPay by Cardless Payment Processing" version 1.0.0
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cardlesspay-by-cardless-paytech.php" instead of "woocommerce-gateway-cardless-money.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.1" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,150 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 217 | 299 | 1,054 |
JavaScript | 1 | 9 | 0 | 96 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 5 | 17.86% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 1 | 3.57% |
▷ Private methods | 4 | 14.29% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin