Benchmarks
Plugin footprint 64% from 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: ▲4.80MB] [CPU: ▲3,507.81ms] 50% from 4 tests
An overview of server-side resources used by RecurWP - WordPress Recurly Payment Gateway
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 5,053.64ms on /wp-admin/admin.php?page=freemius)
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 3,507.81ms on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.36 ▲4.85 | 49.83 ▼6.81 |
Dashboard /wp-admin | 9.18 ▲5.78 | 7,041.69 ▲7,007.11 |
Posts /wp-admin/edit.php | 8.38 ▲4.74 | 5,092.70 ▲5,053.88 |
Add New Post /wp-admin/post-new.php | 11.49 ▲4.52 | 5,230.80 ▲3,948.89 |
Media Library /wp-admin/upload.php | 8.38 ▲5.09 | 5,062.39 ▲5,035.27 |
Redux Framework /wp-admin/tools.php?page=redux-about | 8.38 | 5,060.11 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.38 | 5,053.64 |
Server storage [IO: ▲8.98MB] [DB: ▲0.06MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 791 new files
Database: no new tables, 7 new options
New WordPress options |
---|
fs_gdpr |
fs_active_plugins |
redux_version_upgraded_from |
recurlywp-transients |
recurlywp |
fs_accounts |
fs_debug_mode |
Browser metrics Passed 4 tests
A check of browser resources used by RecurWP - WordPress Recurly Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,909 ▲165 | 14.34 ▼1.37 | 17.76 ▲11.45 | 2.76 ▲0.46 |
Dashboard /wp-admin | 3,019 ▲161 | 6.16 ▼0.01 | 119.49 ▼24.27 | 189.59 ▲2.05 |
Posts /wp-admin/edit.php | 2,744 ▲53 | 3.14 ▼0.09 | 65.23 ▲1.19 | 162.53 ▲15.94 |
Add New Post /wp-admin/post-new.php | 1,663 ▼89 | 20.56 ▼1.33 | 417.68 ▼47.41 | 216.68 ▲55.58 |
Media Library /wp-admin/upload.php | 1,751 ▲56 | 5.51 ▲0.00 | 126.54 ▼11.15 | 238.41 ▲54.17 |
Redux Framework /wp-admin/tools.php?page=redux-about | 1,353 | 4.04 | 101.86 | 225.68 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,455 | 2.47 | 58.18 | 118.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/recurwp/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 7 options in the database
- fs_debug_mode
- redux_version_upgraded_from
- fs_active_plugins
- recurlywp
- fs_gdpr
- fs_accounts
- recurlywp-transients
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/recurwp/freemius/templates/ajax-loader.php
- 155× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Recurly\\RecurlyError' not found in wp-content/plugins/recurwp/lib/vendor/recurly/recurly-client/lib/recurly/errors/client_error.php:10
- > PHP Fatal error
Uncaught Error: Class 'Recurly\\RecurlyResource' not found in wp-content/plugins/recurwp/lib/vendor/recurly/recurly-client/lib/recurly/resources/shipping_method.php:13
- > PHP Fatal error
Uncaught Error: Class 'Recurly\\RecurlyResource' not found in wp-content/plugins/recurwp/lib/vendor/recurly/recurly-client/lib/recurly/resources/payment_method.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/recurwp/options/framework/ReduxCore/inc/welcome/views/changelog.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/recurwp/options/framework/ReduxCore/inc/extensions/customizer/inc/customizer_control.php:4
- > PHP Fatal error
Uncaught Error: Class 'Recurly\\RecurlyResource' not found in wp-content/plugins/recurwp/lib/vendor/recurly/recurly-client/lib/recurly/resources/coupon_mini.php:13
- > PHP Fatal error
Uncaught Error: Class 'Recurly\\RecurlyResource' not found in wp-content/plugins/recurwp/lib/vendor/recurly/recurly-client/lib/recurly/resources/coupon_redemption_mini.php:13
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/recurwp/lib/error/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'Recurly\\RecurlyResource' not found in wp-content/plugins/recurwp/lib/vendor/recurly/recurly-client/lib/recurly/resources/billing_info.php:13
- > PHP Fatal error
Uncaught Error: Class 'Recurly\\RecurlyResource' not found in wp-content/plugins/recurwp/lib/vendor/recurly/recurly-client/lib/recurly/resources/transaction_payment_gateway.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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
Please fix the following attributes:
- Requires php: Invalid version format
- Donate link: Invalid URI ("")
- Screenshots: A description for screenshot #3 is required in recurwp/assets to your readme.txt
recurwp/recurly.php 92% from 13 tests
The main file in "RecurWP - WordPress Recurly Payment Gateway" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recurwp.php" instead of "recurly.php")
Code Analysis 95% from 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
Success! There were no dangerous files found in this plugin106,201 lines of code in 617 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 376 | 13,646 | 34,136 | 58,085 |
YAML | 4 | 286 | 288 | 20,884 |
JavaScript | 94 | 2,828 | 2,190 | 13,892 |
Sass | 54 | 1,187 | 60 | 7,580 |
CSS | 61 | 192 | 72 | 3,114 |
JSON | 11 | 184 | 0 | 1,131 |
SVG | 1 | 0 | 0 | 934 |
Markdown | 7 | 181 | 0 | 413 |
XML | 2 | 10 | 8 | 60 |
Bourne Again Shell | 6 | 23 | 20 | 55 |
LESS | 1 | 0 | 0 | 53 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,907)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 28.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 4 | |
Classes | 284 | |
▷ Abstract classes | 7 | 2.46% |
▷ Concrete classes | 277 | 97.54% |
▷ Final classes | 8 | 2.89% |
Methods | 3,473 | |
▷ Static methods | 321 | 9.24% |
▷ Public methods | 2,953 | 85.03% |
▷ Protected methods | 128 | 3.69% |
▷ Private methods | 392 | 11.29% |
Functions | 157 | |
▷ Named functions | 140 | 89.17% |
▷ Anonymous functions | 17 | 10.83% |
Constants | 198 | |
▷ Global constants | 102 | 51.52% |
▷ Class constants | 96 | 48.48% |
▷ Public constants | 92 | 95.83% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
39 PNG files occupy 0.65MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo/logo.png | 0.43KB | 0.49KB | 0.00% |
options/framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
options/framework/ReduxCore/assets/img/3-col-portfolio.png | 1.00KB | 0.15KB | ▼ 85.27% |
options/framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
options/framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_f6cf3b_256x240.png | 8.68KB | 4.11KB | ▼ 52.68% |