Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.26ms] Passed 4 tests
Server-side resources used by WP Users Pro Subscriptions Plugin - Posts, Pages and Partial Content Protection.
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 43.11 ▼2.02 |
Dashboard /wp-admin | 3.46 ▲0.12 | 52.38 ▼15.31 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 54.95 ▲3.29 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 88.68 ▼14.99 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 43.98 ▲7.80 |
WP Users Pro /wp-admin/admin.php?page=wpuserspro | 3.38 | 40.60 |
User Pages /wp-admin/admin.php?page=wpuserspro-pages | 3.40 | 41.65 |
Licensing /wp-admin/admin.php?page=wpuserspro&tab=licence | 3.35 | 36.20 |
Server storage [IO: ▲4.20MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 278 new files
Database: 5 new tables, 10 new options
New tables |
---|
wp_wpuserspro_subscriptions |
wp_wpuserspro_orders |
wp_wpuserspro_membership_packages |
wp_wpuserspro_membership_post_rel |
wp_wpuserspro_role_post_rel |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
wpuserspro_pro_active |
wpuserspro_options |
wpuserspro_profile_fields |
theysaidso_admin_options |
wpuserspro_ini_setup |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Users Pro Subscriptions Plugin - Posts, Pages and Partial Content Protection.
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,106 ▲345 | 15.85 ▲1.48 | 16.11 ▲14.12 | 42.79 ▼0.90 |
Dashboard /wp-admin | 2,305 ▲102 | 6.43 ▲0.48 | 123.35 ▲9.75 | 83.27 ▲43.95 |
Posts /wp-admin/edit.php | 2,209 ▲109 | 3.15 ▲1.13 | 49.91 ▲13.56 | 51.76 ▲16.29 |
Add New Post /wp-admin/post-new.php | 1,611 ▲85 | 23.94 ▲6.23 | 667.34 ▼26.99 | 195.21 ▲137.80 |
Media Library /wp-admin/upload.php | 1,495 ▲101 | 5.24 ▲1.02 | 97.66 ▼5.56 | 99.05 ▲55.14 |
WP Users Pro /wp-admin/admin.php?page=wpuserspro | 1,043 | 3.03 | 45.52 | 61.02 |
User Pages /wp-admin/admin.php?page=wpuserspro-pages | 1,080 | 3.07 | 39.41 | 35.84 |
Licensing /wp-admin/admin.php?page=wpuserspro&tab=licence | 1,046 | 2.91 | 37.88 | 58.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 5 tables in the database
- wp_wpuserspro_role_post_rel
- wp_wpuserspro_subscriptions
- wp_wpuserspro_membership_post_rel
- wp_wpuserspro_membership_packages
- wp_wpuserspro_orders
- Zombie WordPress options were found after uninstall: 10 options
- widget_recent-posts
- theysaidso_admin_options
- wpuserspro_profile_fields
- can_compress_scripts
- wpuserspro_pro_active
- wpuserspro_options
- widget_recent-comments
- db_upgraded
- wpuserspro_ini_setup
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-users-pro/index.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-users-pro/classes/wpuserspro.role.php:97
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-users-pro/addons/pages/admin/admin.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-users-pro/classes/wpuserspro.common.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-users-pro/addons/wp-users-pro-validation/index.php:11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-users-pro/addons/pages/admin/admin.php on line 14
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/wp-users-pro/classes/wpuserspro.order.php:36
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/wp-users-pro/classes/wpuserspro.membership.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-users-pro/classes/wpuserspro.profile.php:13
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-users-pro/classes/wpuserspro.order.php on line 20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (DASHBOARD), #2 (ADMIN - SUBSCRIPTIONS), #3 (ADMIN - SUBSCRIPTIONS - DETAILS), #4 (ADMIN - SUBSCRIPTIONS - EDIT), #5 (ADMIN - ORDERS), #6 (MEMBER - DASHBOARD), #7 (MEMBER - MEMBERSHIP DETAILS), #8 (MEMBER - CUSTOM AVATAR), #9 (MEMBER - WOOCOMMERCE ORDERS), #10 (MEMBER - SUBSCRIPTION PLANS PURCHASE)
wp-users-pro/index.php 92% from 13 tests
The main PHP script in "WP Users Pro Subscriptions Plugin - Posts, Pages and Partial Content Protection." version 1.1.2 is automatically included on every request by WordPress
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 ("wp-users-pro.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin37,550 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 7,206 | 878 | 12,508 |
JavaScript | 43 | 2,303 | 1,150 | 8,639 |
CSS | 13 | 1,295 | 186 | 6,136 |
SVG | 3 | 0 | 0 | 3,158 |
Sass | 23 | 50 | 48 | 2,649 |
LESS | 23 | 50 | 64 | 2,635 |
PO File | 1 | 800 | 1,011 | 1,825 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 81.86 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 287.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 336 | |
▷ Static methods | 1 | 0.30% |
▷ Public methods | 333 | 99.11% |
▷ Protected methods | 3 | 0.89% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
86 PNG files occupy 0.96MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/iconos-panel/stripe.png | 6.15KB | 3.11KB | ▼ 49.43% |
js/imagcropper/img/cut_icon.png | 3.93KB | 0.82KB | ▼ 79.23% |
admin/images/iconos-panel/staff-add-ons.png | 5.82KB | 2.64KB | ▼ 54.66% |
screenshot-1.png | 40.54KB | 21.33KB | ▼ 47.38% |
admin/images/login_forgotpassword.png | 0.81KB | 0.68KB | ▼ 16.02% |