Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.05MB] [CPU: ▼3.36ms] Passed 4 tests
A check of server-side resources used by Dialog eZ Cash payment gateway for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.56 ▲1.10 | 50.43 ▲8.18 |
Dashboard /wp-admin | 4.40 ▲1.06 | 57.79 ▼9.52 |
Posts /wp-admin/edit.php | 4.45 ▲1.10 | 55.13 ▲1.39 |
Add New Post /wp-admin/post-new.php | 6.92 ▲1.03 | 94.75 ▼13.47 |
Media Library /wp-admin/upload.php | 4.26 ▲1.03 | 48.80 ▲10.56 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Dialog eZ Cash payment gateway for Woocommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.22 ▼0.13 | 2.03 ▲0.31 | 42.69 ▼1.63 |
Dashboard /wp-admin | 2,195 ▲18 | 5.52 ▼0.15 | 81.16 ▼11.66 | 36.25 ▼9.01 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.01 | 34.87 ▼3.84 | 34.17 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.25 ▲0.20 | 646.02 ▼42.74 | 53.61 ▲0.55 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.00 | 100.09 ▼18.13 | 45.64 ▼5.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dialog-ez-cash-payment-gateway-for-woocommerce/woocommerce-ezcash.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
dialog-ez-cash-payment-gateway-for-woocommerce/woocommerce-ezcash.php 85% from 13 tests
The entry point to "Dialog eZ Cash payment gateway for Woocommerce" version 1.0.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dialog-ez-cash-payment-gateway-for-woocommerce.php" instead of "woocommerce-ezcash.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "3.1")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin20,635 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 3,421 | 12,608 | 20,635 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 108)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 148.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 656.00 |
Average method complexity | 6.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 108.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 627 | |
▷ Static methods | 1 | 0.16% |
▷ Public methods | 627 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 233 | |
▷ Global constants | 233 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ezcash.png | 1.87KB | 1.61KB | ▼ 14.05% |