Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.05ms] Passed 4 tests
Server-side resources used by Woo Pelecard Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.39 ▼1.52 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.26 ▼0.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.07 ▼1.66 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.16 ▼0.57 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.19 ▲0.04 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Woo Pelecard Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.22 ▼1.37 | 1.74 ▼0.33 | 43.72 ▼6.23 |
Dashboard /wp-admin | 2,203 ▲14 | 4.79 ▼0.18 | 111.10 ▼7.66 | 42.92 ▼3.89 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▲0.03 | 36.69 ▼0.08 | 32.41 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.75 ▲0.38 | 608.11 ▼35.19 | 55.85 ▲5.26 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▼0.03 | 95.71 ▲3.03 | 40.33 ▼0.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Pelecardwc\\Invoices\\Base' not found in wp-content/plugins/woo-pelecard-gateway/includes/Invoices/Tamal.php:8
- > PHP Fatal error
Trait 'Pelecardwc\\Traits\\Singleton' not found in wp-content/plugins/woo-pelecard-gateway/includes/Order.php on line 8
- > PHP Fatal error
Trait 'Pelecardwc\\Traits\\Singleton' not found in wp-content/plugins/woo-pelecard-gateway/includes/Legacy.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Pelecardwc\\Invoices\\Base' not found in wp-content/plugins/woo-pelecard-gateway/includes/Invoices/ICount.php:8
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/woo-pelecard-gateway/includes/Gateway.php:15
- > PHP Fatal error
Uncaught Error: Class 'WC_Data' not found in wp-content/plugins/woo-pelecard-gateway/includes/Transaction.php:5
- > PHP Fatal error
Uncaught Error: Class 'Pelecardwc\\Invoices\\Base' not found in wp-content/plugins/woo-pelecard-gateway/includes/Invoices/EZCount.php:8
- > PHP Fatal error
Uncaught Error: Class 'WC_Session_Handler' not found in wp-content/plugins/woo-pelecard-gateway/includes/Session.php:10
- > PHP Fatal error
Trait 'Pelecardwc\\Traits\\Singleton' not found in wp-content/plugins/woo-pelecard-gateway/includes/Plugin.php on line 13
- > 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 93% from 29 tests
readme.txt Passed 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
8 plugin tags: woo commerce, pelecard, gateway, subscriptions, payments...
woo-pelecard-gateway/woocommerce-pelecard-gateway.php 85% from 13 tests
The entry point to "Woo Pelecard Gateway" version 1.4.22 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-pelecard-gateway.php" instead of "woocommerce-pelecard-gateway.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,498 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 665 | 384 | 3,371 |
JavaScript | 4 | 13 | 0 | 76 |
JSON | 2 | 0 | 0 | 51 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 278)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 298.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 278.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 209 | |
▷ Static methods | 23 | 11.00% |
▷ Public methods | 195 | 93.30% |
▷ Protected methods | 1 | 0.48% |
▷ Private methods | 13 | 6.22% |
Functions | 9 | |
▷ Named functions | 4 | 44.44% |
▷ Anonymous functions | 5 | 55.56% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 100.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