Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.50MB] [CPU: ▼0.62ms] Passed 4 tests
A check of server-side resources used by Wallkit Subscriptions & Paywall Plugin for Wordpress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 46.25 ▲7.00 |
Dashboard /wp-admin | 3.81 ▲0.46 | 50.33 ▼17.29 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 56.67 ▲9.67 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 96.69 ▲3.88 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 38.58 ▲3.93 |
Settings /wp-admin/admin.php?page=wallkit-settings | 3.78 | 36.27 |
Advanced /wp-admin/admin.php?page=wallkit-advanced | 3.76 | 41.48 |
Wallkit /wp-admin/admin.php?page=wallkit/admin/class-wallkit-wp-admin.php | 3.70 | 33.52 |
Appearance /wp-admin/admin.php?page=wallkit-Appearance | 3.77 | 40.57 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Wallkit Subscriptions & Paywall Plugin for Wordpress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲83 | 14.25 ▼0.06 | 1.65 ▼0.01 | 44.34 ▲2.37 |
Dashboard /wp-admin | 2,220 ▲40 | 5.70 ▲0.05 | 102.73 ▲1.80 | 93.57 ▲51.69 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.08 ▲0.05 | 40.15 ▲1.90 | 35.10 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,569 ▲33 | 25.03 ▲1.95 | 724.30 ▲45.74 | 90.60 ▲33.59 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.14 ▼0.04 | 106.02 ▼3.19 | 72.59 ▲25.49 |
Settings /wp-admin/admin.php?page=wallkit-settings | 1,162 | 1.90 | 27.19 | 28.15 |
Advanced /wp-admin/admin.php?page=wallkit-advanced | 1,585 | 6.78 | 136.88 | 115.15 |
Wallkit /wp-admin/admin.php?page=wallkit/admin/class-wallkit-wp-admin.php | 840 | 1.70 | 24.85 | 29.47 |
Appearance /wp-admin/admin.php?page=wallkit-Appearance | 3,737 | 11.18 | 241.67 | 111.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wallkit/admin/partials/template-wallkit-admin-main.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WallkitSDK\\Exceptions\\WallkitException' not found in wp-content/plugins/wallkit/vendor/wallkit-php-sdk/src/Exceptions/WallkitConnectionException.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wallkit/admin/partials/template-wallkit-admin-configuration.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wallkit/admin/partials/template-wallkit-admin-advanced.php:17
- > PHP Fatal error
Uncaught Error: Class 'Wallkit_Wp_Settings' not found in wp-content/plugins/wallkit/includes/class-wallkit-wp-activator.php:10
- > PHP Fatal error
Uncaught Error: Class 'WallkitSDK\\Exceptions\\WallkitException' not found in wp-content/plugins/wallkit/vendor/wallkit-php-sdk/src/Exceptions/WallkitApiException.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wallkit/admin/partials/template-wallkit-admin-setup.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wallkit/admin/partials/settings/template-integration-settings.php:16
- > PHP Fatal error
Uncaught Error: Class 'WallkitSDK\\Exceptions\\WallkitException' not found in wp-content/plugins/wallkit/vendor/wallkit-php-sdk/src/Exceptions/WallkitAccessException.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wallkit/admin/partials/settings/template-settings.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wallkit/admin/partials/settings/template-dev-settings.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: Plugin contributors not specified
wallkit/wallkit-wp.php 92% from 13 tests
The principal PHP file in "Wallkit Subscriptions & Paywall Plugin for Wordpress" v. 3.2.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wallkit.php" instead of "wallkit-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,047 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 915 | 1,524 | 3,341 |
JavaScript | 4 | 112 | 70 | 620 |
PO File | 3 | 21 | 30 | 84 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 11.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 205 | |
▷ Static methods | 10 | 4.88% |
▷ Public methods | 176 | 85.85% |
▷ Protected methods | 2 | 0.98% |
▷ Private methods | 27 | 13.17% |
Functions | 16 | |
▷ Named functions | 4 | 25.00% |
▷ Anonymous functions | 12 | 75.00% |
Constants | 16 | |
▷ Global constants | 7 | 43.75% |
▷ Class constants | 9 | 56.25% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.60MB with 0.42MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/main_wallkit_image.png | 574.27KB | 161.20KB | ▼ 71.93% |
admin/images/main_background_old.png | 22.52KB | 2.19KB | ▼ 90.28% |
admin/images/main_background.png | 11.31KB | 5.79KB | ▼ 48.76% |
admin/images/WK-Icon.png | 1.90KB | 0.51KB | ▼ 73.37% |