Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.89ms] Passed 4 tests
Server-side resources used by pensopay Checkout Terms (Subscriptions)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.47 ▼3.91 |
Dashboard /wp-admin | 3.33 ▼0.01 | 43.85 ▼10.18 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.95 ▼4.45 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.15 ▼21.00 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.86 ▼0.74 |
Pensopay Checkout Terms Settings /wp-admin/options-general.php?page=pensopay-checkout-terms | 3.23 | 31.25 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for pensopay Checkout Terms (Subscriptions)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.24 ▼0.11 | 1.67 ▼0.26 | 42.84 ▼5.01 |
Dashboard /wp-admin | 2,196 ▲22 | 5.53 ▼0.01 | 83.60 ▲0.06 | 36.65 ▼5.35 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.03 | 33.41 ▼2.72 | 36.87 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.10 ▼0.47 | 664.56 ▼21.83 | 60.36 ▲5.36 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▲0.00 | 103.27 ▲2.50 | 44.25 ▼0.11 |
Pensopay Checkout Terms Settings /wp-admin/options-general.php?page=pensopay-checkout-terms | 876 | 1.99 | 25.95 | 39.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pensopay-checkout-terms-subscriptions/pensopay-checkout-terms.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: woocommerce, clearhaus, subscriptions
pensopay-checkout-terms-subscriptions/pensopay-checkout-terms.php 85% from 13 tests
This is the main PHP file of "pensopay Checkout Terms (Subscriptions)" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pensopay-checkout-terms-subscriptions.php" instead of "pensopay-checkout-terms.php")
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
There were no executable files found in this plugin106 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 10 | 79 |
PO File | 1 | 2 | 4 | 27 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin