Benchmarks
Plugin footprint 65% 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: ▲1.33MB] [CPU: ▼4.15ms] Passed 4 tests
An overview of server-side resources used by Paypal Subscriptions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.83 ▲1.36 | 48.41 ▲5.92 |
Dashboard /wp-admin | 4.65 ▲1.30 | 57.56 ▼14.21 |
Posts /wp-admin/edit.php | 4.76 ▲1.40 | 59.78 ▲1.78 |
Add New Post /wp-admin/post-new.php | 7.23 ▲1.34 | 96.66 ▼10.10 |
Media Library /wp-admin/upload.php | 4.57 ▲1.34 | 54.98 ▲20.26 |
Subscription Products /wp-admin/admin.php?page=gpls-pyplss-paypal-subscriptions-paypal-products-page | 5.57 | 426.11 |
Subscriptions /wp-admin/admin.php?page=gpls-pyplss-paypal-subscriptions-paypal-subscriptions-page | 4.60 | 49.84 |
Settings /wp-admin/admin.php?page=gpls-pyplss-paypal-subscriptions-paypal-subscriptions-settings | 4.55 | 45.02 |
Subscription Plans /wp-admin/admin.php?page=gpls-pyplss-paypal-subscriptions-paypal-subscription-plans-page | 5.61 | 403.52 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 233 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_gpls_pyplss_subscriptions_meta |
wp_gpls_pyplss_plans_meta |
wp_gpls_pyplss_subscriptions |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Paypal Subscriptions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲239 | 20.43 ▲6.13 | 31.57 ▲29.40 | 41.82 ▼1.19 |
Dashboard /wp-admin | 2,215 ▲38 | 5.63 ▲0.02 | 87.88 ▼2.62 | 75.35 ▲33.27 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.97 ▼0.02 | 52.28 ▲10.05 | 42.38 ▲4.26 |
Add New Post /wp-admin/post-new.php | 1,558 ▲8 | 22.94 ▼0.29 | 776.71 ▲107.76 | 55.74 ▼3.72 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.25 ▲0.08 | 98.36 ▼11.98 | 70.07 ▲25.59 |
Subscription Products /wp-admin/admin.php?page=gpls-pyplss-paypal-subscriptions-paypal-products-page | 959 | 1.90 | 26.24 | 43.22 |
Subscriptions /wp-admin/admin.php?page=gpls-pyplss-paypal-subscriptions-paypal-subscriptions-page | 1,055 | 2.26 | 34.88 | 27.10 |
Settings /wp-admin/admin.php?page=gpls-pyplss-paypal-subscriptions-paypal-subscriptions-settings | 1,196 | 1.73 | 24.67 | 26.61 |
Subscription Plans /wp-admin/admin.php?page=gpls-pyplss-paypal-subscriptions-paypal-subscription-plans-page | 1,324 | 1.89 | 28.98 | 25.89 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_gpls_pyplss_subscriptions_meta
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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 50% 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
- 73× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gpls-paypal-subscriptions/templates/pages/plans/paypal-plans.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gpls-paypal-subscriptions/templates/pages/products/paypal-products.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/gpls-paypal-subscriptions/vendor/guzzlehttp/psr7/src/ServerRequest.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/gpls-paypal-subscriptions/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/gpls-paypal-subscriptions/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/gpls-paypal-subscriptions/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/gpls-paypal-subscriptions/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gpls-paypal-subscriptions/templates/pages/subscriptions/paypal-subscriptions.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/gpls-paypal-subscriptions/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/gpls-paypal-subscriptions/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #9 in gpls-paypal-subscriptions/assets to your readme.txt
gpls-paypal-subscriptions/gpls-paypal-subscriptions.php Passed 13 tests
The principal PHP file in "Paypal Subscriptions" v. 1.0.1 is loaded by WordPress automatically on each request
52 characters long description:
Integrate Paypal Subscriptions for WordPress easily.
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 plugin20,858 lines of code in 209 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 169 | 3,151 | 9,206 | 16,149 |
Markdown | 15 | 1,265 | 0 | 3,647 |
JSON | 9 | 0 | 0 | 1,040 |
CSS | 9 | 0 | 10 | 9 |
YAML | 1 | 0 | 0 | 7 |
JavaScript | 6 | 0 | 6 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 27 | |
Traits | 5 | |
Classes | 110 | |
▷ Abstract classes | 11 | 10.00% |
▷ Concrete classes | 99 | 90.00% |
▷ Final classes | 35 | 35.35% |
Methods | 1,171 | |
▷ Static methods | 306 | 26.13% |
▷ Public methods | 927 | 79.16% |
▷ Protected methods | 96 | 8.20% |
▷ Private methods | 148 | 12.64% |
Functions | 138 | |
▷ Named functions | 48 | 34.78% |
▷ Anonymous functions | 90 | 65.22% |
Constants | 73 | |
▷ Global constants | 2 | 2.74% |
▷ Class constants | 71 | 97.26% |
▷ Public constants | 60 | 84.51% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.19MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/dist/images/full-logo.png | 6.58KB | 3.86KB | ▼ 41.28% |
assets/dist/images/paypal.png | 1.58KB | 1.51KB | ▼ 4.44% |
core/assets/dist/images/logo-icon-sm.png | 0.62KB | 0.72KB | 0.00% |
assets/dist/images/paypal-apps-options.png | 82.88KB | 41.10KB | ▼ 50.41% |
assets/dist/images/eye.png | 14.13KB | 7.03KB | ▼ 50.25% |