Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/paywhirl-recurring-payments/includes/database.php+17
Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.16ms] Passed 4 tests
This is a short check of server-side resources used by Paywhirl for Wordpress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.73 ▼35.86 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.37 ▼41.10 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.77 ▼42.79 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.52 ▼84.88 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.35 ▼28.53 |
Installation /wp-admin/admin.php?page=paywhirl-installation | 2.05 | 6.46 |
Paywhirl /wp-admin/admin.php?page=paywhirl-menu | 2.05 | 6.02 |
Orders /wp-admin/admin.php?page=paywhirl-orders | 2.05 | 5.81 |
Subscribers /wp-admin/admin.php?page=paywhirl-subscribers | 2.05 | 6.26 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- Illegal file modification found: 1 file (0.68KB) outside of "wp-content/plugins/paywhirl-recurring-payments/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 65 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_paywhirl_user_invoices |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Paywhirl for Wordpress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 14.48 ▼0.27 | 1.64 ▲0.00 | 40.31 ▼8.02 |
Dashboard /wp-admin | 2,243 ▲54 | 4.94 ▼0.02 | 97.36 ▼6.78 | 70.25 ▲21.35 |
Posts /wp-admin/edit.php | 2,129 ▲37 | 1.99 ▲0.01 | 34.78 ▼6.39 | 35.92 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,556 ▲22 | 23.11 ▲0.05 | 715.02 ▲40.31 | 59.53 ▲9.49 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.22 ▲0.02 | 103.37 ▲3.21 | 81.21 ▲35.48 |
Installation /wp-admin/admin.php?page=paywhirl-installation | 878 | 2.02 | 25.60 | 23.72 |
Paywhirl /wp-admin/admin.php?page=paywhirl-menu | 1,486 | 9.46 | 361.23 | 89.69 |
Orders /wp-admin/admin.php?page=paywhirl-orders | 835 | 2.01 | 25.63 | 24.42 |
Subscribers /wp-admin/admin.php?page=paywhirl-subscribers | 824 | 2.01 | 23.35 | 23.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/paywhirl-recurring-payments/includes/database.php+17
Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=paywhirl-subscribers
- > Warning in wp-content/plugins/paywhirl-recurring-payments/includes/database.php+17
Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=paywhirl-subscribers
- > Warning in wp-content/plugins/paywhirl-recurring-payments/includes/database.php+18
Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=paywhirl-subscribers
- > Warning in wp-content/plugins/paywhirl-recurring-payments/includes/database.php+19
Use of undefined constant fields - assumed 'fields' (this will throw an Error in a future version of PHP)
SRP Passed 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
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=paywhirl-installation
- > Network (severe)
wp-content/plugins/paywhirl/css/admin-installation-page.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=paywhirl-subscribers
- > Network (severe)
wp-content/plugins/paywhirl/images/menu-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=paywhirl-menu
- > Network (severe)
wp-content/plugins/paywhirl/css/admin-dashboard-page.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=paywhirl-menu
- > Security (severe) in unknown
https://doug1izaerwt3.cloudfront.net/ab1b7a2db4b13eba5f777af9aab8f3ae3f642253.1.js 40 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://app.kissmetrics.com') does not match the recipient window's origin ('').
- > GET request to /wp-admin/admin.php?page=paywhirl-orders
- > Network (severe)
wp-content/plugins/paywhirl/css/admin-orders-page.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=paywhirl-orders
- > Network (severe)
wp-content/plugins/paywhirl/js/orders.js - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=paywhirl-subscribers
- > Network (severe)
wp-content/plugins/paywhirl/css/admin-subscribers-page.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=paywhirl-subscribers
- > Network (severe)
wp-content/plugins/paywhirl/js/subscribers.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== paywhirl-recurring-payments ===
) - Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
paywhirl-recurring-payments/paywhirl.php 92% from 13 tests
"Paywhirl for Wordpress" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("paywhirl-recurring-payments.php" instead of "paywhirl.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,820 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 328 | 199 | 805 |
PHP | 24 | 326 | 200 | 521 |
Sass | 14 | 143 | 21 | 490 |
CSS | 4 | 0 | 4 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 4 | 44.44% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu-icon.png | 1.79KB | 1.05KB | ▼ 41.43% |
images/logo.png | 2.66KB | 1.77KB | ▼ 33.46% |
images/close-button.png | 2.52KB | 0.89KB | ▼ 64.85% |
images/installation-step-1.png | 29.22KB | 9.02KB | ▼ 69.12% |
images/installation-step-3.png | 32.92KB | 11.22KB | ▼ 65.91% |