Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼1.14ms] Passed 4 tests
Analyzing server-side resources used by WP eCommerce Quickpay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 35.69 ▼6.34 |
Dashboard /wp-admin | 3.57 ▲0.26 | 45.95 ▲4.58 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 46.81 ▼4.35 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 89.78 ▲5.66 |
Media Library /wp-admin/upload.php | 3.43 ▲0.19 | 36.30 ▲1.57 |
Quickpay logs /wp-admin/tools.php?page=wpec-qp-logs | 3.40 | 31.54 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP eCommerce Quickpay
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.29 ▼1.01 | 4.72 ▲2.63 | 43.85 ▼1.34 |
Dashboard /wp-admin | 2,221 ▲33 | 4.86 ▼1.00 | 117.04 ▲1.23 | 57.64 ▲10.75 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.05 ▲0.04 | 40.04 ▼2.92 | 38.86 ▲2.52 |
Add New Post /wp-admin/post-new.php | 1,525 ▼17 | 23.04 ▲4.54 | 626.67 ▲13.87 | 53.20 ▼0.18 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.23 ▲0.08 | 100.23 ▲0.41 | 40.04 ▼4.91 |
Quickpay logs /wp-admin/tools.php?page=wpec-qp-logs | 798 | 2.07 | 24.36 | 24.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPEC_QP_API_Transaction' not found in wp-content/plugins/wp-ecommerce-quickpay/includes/classes/api/wpec-qp-api-payment.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-ecommerce-quickpay/vendor/quickpay/quickpay-php-client/Tests/api/ExceptionTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-ecommerce-quickpay/vendor/quickpay/quickpay-php-client/Tests/api/ResponseTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-ecommerce-quickpay/vendor/quickpay/quickpay-php-client/Tests/api/RequestTest.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ecommerce-quickpay/includes/functions.php:227
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-ecommerce-quickpay/wp-e-commerce-quickpay.php:106
- > PHP Fatal error
Uncaught Error: Class 'WPEC_QP_API' not found in wp-content/plugins/wp-ecommerce-quickpay/includes/classes/api/wpec-qp-api-transaction.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
wp-ecommerce-quickpay/wp-e-commerce-quickpay.php 85% from 13 tests
"WP eCommerce Quickpay" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wp-ecommerce-quickpay.php" instead of "wp-e-commerce-quickpay.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
Everything looks great! No dangerous files found in this plugin1,781 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 397 | 993 | 1,388 |
Markdown | 2 | 50 | 0 | 121 |
JavaScript | 1 | 16 | 2 | 102 |
JSON | 2 | 0 | 0 | 67 |
YAML | 2 | 6 | 0 | 45 |
CSS | 1 | 3 | 6 | 32 |
XML | 2 | 0 | 1 | 26 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 14 | 12.84% |
▷ Public methods | 104 | 95.41% |
▷ Protected methods | 3 | 2.75% |
▷ Private methods | 2 | 1.83% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
No PNG files were detected