Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.81MB] [CPU: ▼48.98ms] Passed 4 tests
This is a short check of server-side resources used by Paid Pages with WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.80 ▼5.95 |
Dashboard /wp-admin | 2.14 ▼1.17 | 7.60 ▼40.57 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 10.17 ▼38.35 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 7.48 ▼89.07 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 6.59 ▼27.93 |
All plans /wp-admin/edit.php?post_type=subscription_plan | 2.14 | 6.74 |
Add new /wp-admin/post-new.php?post_type=subscription_plan | 2.14 | 6.64 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Paid Pages with WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲118 | 13.31 ▼0.93 | 1.63 ▼0.51 | 41.02 ▼9.44 |
Dashboard /wp-admin | 2,256 ▲68 | 5.87 ▲0.96 | 98.75 ▼9.21 | 38.69 ▼3.33 |
Posts /wp-admin/edit.php | 2,143 ▲57 | 2.08 ▲0.04 | 36.17 ▼1.09 | 47.07 ▲14.58 |
Add New Post /wp-admin/post-new.php | 6,514 ▲4,980 | 20.29 ▼2.87 | 862.80 ▲181.42 | 53.91 ▼6.79 |
Media Library /wp-admin/upload.php | 1,441 ▲56 | 4.23 ▲0.08 | 102.13 ▼18.52 | 43.93 ▼4.83 |
All plans /wp-admin/edit.php?post_type=subscription_plan | 1,104 | 1.95 | 32.76 | 30.04 |
Add new /wp-admin/post-new.php?post_type=subscription_plan | 1,759 | 3.54 | 63.39 | 94.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ppww handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=subscription_plan
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ppww handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: paid page access, subscriptions, woocommerce
paid-pages-with-woocommerce/ppww.php 85% from 13 tests
"Paid Pages with WooCommerce" version 0.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paid-pages-with-woocommerce.php" instead of "ppww.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin692 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 99 | 108 | 484 |
PO File | 1 | 57 | 68 | 150 |
CSS | 1 | 8 | 0 | 52 |
SVG | 2 | 0 | 0 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 4 | 100.00% |
Methods | 46 | |
▷ Static methods | 8 | 17.39% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin