Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼146.90ms] Passed 4 tests
Analyzing server-side resources used by Wootastic Beanstream
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.15 | 37.61 ▲13.42 |
Dashboard /wp-admin | 3.09 ▲0.03 | 46.29 ▼5.53 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 44.34 ▼5.59 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 86.69 ▼577.00 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 35.90 ▲0.53 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Wootastic Beanstream
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.34 ▲0.30 | 10.63 ▲2.67 | 55.23 ▲3.28 |
Dashboard /wp-admin | 2,967 ▲33 | 5.93 ▼0.16 | 159.39 ▲0.69 | 114.22 ▼16.48 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.00 | 68.06 ▼3.39 | 90.78 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.77 ▲0.02 | 393.99 ▲4.00 | 115.60 ▲1.24 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.01 ▲0.00 | 155.41 ▼3.08 | 129.13 ▼0.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wootastic-beanstream/vendor/inacho/php-credit-card-validator/tests/Test.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function mcrypt_create_iv() in wp-content/plugins/wootastic-beanstream/vendor/beanstream/beanstream/src/Beanstream/examples.php:15
- > 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 errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: beanstream, payment gateway, woocommerce
wootastic-beanstream/wooco_beanstream.php 69% from 13 tests
The primary PHP file in "Wootastic Beanstream" version 0.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("wootastic-beanstream.php" instead of "wooco_beanstream.php")
- Git Repository: An alternative Git repository was detected
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,634 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 504 | 1,051 | 1,332 |
Markdown | 2 | 57 | 0 | 159 |
JSON | 3 | 0 | 0 | 143 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 13 | 12.26% |
▷ Public methods | 97 | 91.51% |
▷ Protected methods | 7 | 6.60% |
▷ Private methods | 2 | 1.89% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin