Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.10ms] Passed 4 tests
Server-side resources used by RainbowPayPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 43.55 ▼1.25 |
Dashboard /wp-admin | 3.53 ▲0.23 | 57.28 ▲1.26 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 50.63 ▼2.61 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 87.99 ▼9.81 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 39.63 ▲2.21 |
Help /wp-admin/admin.php?page=plugin_RainbowPayPress_root | 3.42 | 38.27 |
Items /wp-admin/admin.php?page=plugin_RainbowPayPress_items | 3.42 | 36.57 |
Settings /wp-admin/admin.php?page=plugin_RainbowPayPress_settings | 3.42 | 37.36 |
Transactions /wp-admin/admin.php?page=plugin_RainbowPayPress_transactions | 3.42 | 38.02 |
Server storage [IO: ▲3.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 164 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_plugin_rainbow_pay_press_items |
wp_plugin_rainbow_pay_press_transactions |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RainbowPayPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 14.74 ▲0.68 | 2.06 ▼0.28 | 43.79 ▲0.59 |
Dashboard /wp-admin | 2,259 ▲56 | 4.87 ▼0.24 | 100.73 ▼5.09 | 38.81 ▼0.31 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.06 ▲0.02 | 36.18 ▼2.53 | 34.03 ▼4.59 |
Add New Post /wp-admin/post-new.php | 1,573 ▲42 | 23.23 ▼0.13 | 626.15 ▼37.65 | 62.58 ▲2.32 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.19 ▼0.02 | 99.54 ▲0.72 | 48.29 ▼2.96 |
Help /wp-admin/admin.php?page=plugin_RainbowPayPress_root | 1,279 | 2.91 | 62.60 | 44.10 |
Items /wp-admin/admin.php?page=plugin_RainbowPayPress_items | 1,167 | 2.80 | 54.92 | 29.02 |
Settings /wp-admin/admin.php?page=plugin_RainbowPayPress_settings | 1,143 | 2.94 | 57.40 | 37.42 |
Transactions /wp-admin/admin.php?page=plugin_RainbowPayPress_transactions | 1,256 | 3.04 | 59.72 | 30.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_plugin_rainbow_pay_press_transactions
- wp_plugin_rainbow_pay_press_items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/build.php
- 78× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'plugin_RainbowPayPress\\Stripe\\TestCase' not found in wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/tests/ProductTest.php:5
- > PHP Notice
Undefined variable: argv in wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/build.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'plugin_RainbowPayPress\\Stripe\\TestCase' not found in wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/tests/BalanceTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'plugin_RainbowPayPress\\Stripe\\ApiResource' not found in wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/lib/Plan.php:5
- > PHP Fatal error
Uncaught Error: Class 'plugin_RainbowPayPress\\Stripe\\TestCase' not found in wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/tests/TransferTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'plugin_RainbowPayPress\\Stripe\\Error\\Base' not found in wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/lib/Error/Api.php:5
- > PHP Fatal error
Uncaught Error: Class 'plugin_RainbowPayPress\\Stripe\\ApiResource' not found in wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/lib/Customer.php:5
- > PHP Fatal error
Uncaught Error: Class 'plugin_RainbowPayPress\\Stripe\\TestCase' not found in wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/tests/InvoiceTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'plugin_RainbowPayPress\\Stripe\\ExternalAccount' not found in wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/lib/BankAccount.php:5
- > PHP Fatal error
Uncaught Error: Class 'plugin_RainbowPayPress\\Stripe\\ApiResource' not found in wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/lib/Event.php:5
- > 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)
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
These attributes need your attention:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
rainbowpaypress/RainbowPayPress.php 85% from 13 tests
Analyzing the main PHP file in "RainbowPayPress" version 3.1.0
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rainbowpaypress.php" instead of "RainbowPayPress.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/rainbowpaypress/stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 58 | 6,221 | 7,183 | 22,985 |
PHP | 87 | 977 | 1,002 | 5,003 |
Markdown | 2 | 133 | 0 | 214 |
JSON | 1 | 0 | 0 | 36 |
XML | 2 | 0 | 0 | 30 |
CSS | 1 | 16 | 20 | 23 |
YAML | 2 | 3 | 0 | 18 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 1.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 82 | |
▷ Abstract classes | 5 | 6.10% |
▷ Concrete classes | 77 | 93.90% |
▷ Final classes | 0 | 0.00% |
Methods | 369 | |
▷ Static methods | 129 | 34.96% |
▷ Public methods | 334 | 90.51% |
▷ Protected methods | 21 | 5.69% |
▷ Private methods | 14 | 3.79% |
Functions | 26 | |
▷ Named functions | 23 | 88.46% |
▷ Anonymous functions | 3 | 11.54% |
Constants | 19 | |
▷ Global constants | 1 | 5.26% |
▷ Class constants | 18 | 94.74% |
▷ Public constants | 18 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
stripe-php-3.4.0--tweaked--2016-03-18--01--namespaced/data/test.png | 0.09KB | 0.09KB | 0.00% |