Benchmarks
Plugin footprint 82% 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.68MB] [CPU: ▲1.65ms] Passed 4 tests
An overview of server-side resources used by s2Member – Best Membership Plugin for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.37 ▲1.91 | 53.52 ▲8.77 |
Dashboard /wp-admin | 4.96 ▲1.66 | 47.30 ▲0.24 |
Posts /wp-admin/edit.php | 5.23 ▲1.88 | 56.51 ▲5.59 |
Add New Post /wp-admin/post-new.php | 7.35 ▲1.46 | 97.95 ▼7.99 |
Media Library /wp-admin/upload.php | 4.96 ▲1.74 | 52.33 ▲20.60 |
Restriction Options /wp-admin/admin.php?page=ws-plugin--s2member-res-ops | 5.35 | 53.88 |
API / Tracking /wp-admin/admin.php?page=ws-plugin--s2member-trk-ops | 5.33 | 52.78 |
PayPal Buttons /wp-admin/admin.php?page=ws-plugin--s2member-paypal-buttons | 5.36 | 52.69 |
Log Files (Debug) /wp-admin/admin.php?page=ws-plugin--s2member-logs | 5.17 | 55.73 |
Other Integrations /wp-admin/admin.php?page=ws-plugin--s2member-integrations | 5.07 | 47.80 |
PayPal Options /wp-admin/admin.php?page=ws-plugin--s2member-paypal-ops | 5.53 | 51.49 |
Getting Help /wp-admin/admin.php?page=ws-plugin--s2member-help | 5.08 | 45.80 |
Download Options /wp-admin/admin.php?page=ws-plugin--s2member-down-ops | 5.59 | 54.31 |
Getting Started /wp-admin/admin.php?page=ws-plugin--s2member-start | 5.06 | 59.31 |
Server storage [IO: ▲4.44MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- There were 3 files (6.56KB) illegally modified outside of "wp-content/plugins/s2member/" and "wp-content/uploads/"
- (new file) wp-content/plugins/s2member-logs/.htaccess
- (new file) wp-content/plugins/s2member-files/.htaccess
- (modified) .htaccess
Filesystem: 461 new files
Database: no new tables, 12 new options
New WordPress options |
---|
ws_plugin__s2member_activated_version |
ws_plugin__s2member_configured |
db_upgraded |
theysaidso_admin_options |
ws_plugin__s2member_cache |
ws_plugin__s2member_options |
ws_plugin__s2member_activated_levels |
widget_recent-posts |
widget_theysaidso_widget |
ws_plugin__s2member_notices |
... |
Browser metrics Passed 4 tests
A check of browser resources used by s2Member – Best Membership Plugin for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲248 | 13.65 ▼0.59 | 9.91 ▲7.89 | 39.39 ▼0.83 |
Dashboard /wp-admin | 2,308 ▲117 | 5.87 ▲0.94 | 111.01 ▲7.03 | 97.06 ▲51.56 |
Posts /wp-admin/edit.php | 2,208 ▲116 | 1.97 ▼0.15 | 38.56 ▼1.95 | 42.45 ▲8.20 |
Add New Post /wp-admin/post-new.php | 6,774 ▲5,260 | 28.92 ▲11.50 | 969.60 ▲294.07 | 92.03 ▲34.19 |
Media Library /wp-admin/upload.php | 1,505 ▲123 | 4.23 ▲0.04 | 97.79 ▲0.24 | 83.94 ▲41.29 |
Restriction Options /wp-admin/admin.php?page=ws-plugin--s2member-res-ops | 2,597 | 8.90 | 103.42 | 69.56 |
API / Tracking /wp-admin/admin.php?page=ws-plugin--s2member-trk-ops | 2,611 | 8.94 | 91.12 | 73.91 |
PayPal Buttons /wp-admin/admin.php?page=ws-plugin--s2member-paypal-buttons | 10,139 | 8.86 | 78.60 | 71.81 |
Log Files (Debug) /wp-admin/admin.php?page=ws-plugin--s2member-logs | 1,622 | 8.90 | 77.62 | 81.39 |
Other Integrations /wp-admin/admin.php?page=ws-plugin--s2member-integrations | 1,231 | 9.05 | 75.63 | 82.96 |
PayPal Options /wp-admin/admin.php?page=ws-plugin--s2member-paypal-ops | 2,604 | 8.89 | 77.07 | 77.50 |
Getting Help /wp-admin/admin.php?page=ws-plugin--s2member-help | 1,242 | 8.88 | 79.78 | 82.16 |
Download Options /wp-admin/admin.php?page=ws-plugin--s2member-down-ops | 5,616 | 21.22 | 568.56 | 74.35 |
Getting Started /wp-admin/admin.php?page=ws-plugin--s2member-start | 1,528 | 14.66 | 320.43 | 106.99 |
/wp-admin/admin.php?page=# | 28 | 0.44 | 0.07 | 5.33 |
Uninstaller [IO: ▲0.01MB] [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
Please fix the following items
- Zombie WordPress options were found after uninstall: 12 options
- db_upgraded
- widget_theysaidso_widget
- ws_plugin__s2member_activated_levels
- ws_plugin__s2member_notices
- ws_plugin__s2member_cache
- ws_plugin__s2member_activated_version
- widget_recent-comments
- ws_plugin__s2member_options
- ws_plugin__s2member_configured
- can_compress_scripts
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 18 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ws-plugin--s2member-start
- > Notice in wp-content/plugins/s2member/src/includes/classes/admin-css-js-in.inc.php+55
ob_end_clean(): failed to delete buffer. No buffer to delete
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 207× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/s2member/src/includes/menu-pages/mms-ops.inc.php
- > /wp-content/plugins/s2member/src/includes/classes/email-configs.inc.php
- > /wp-content/plugins/s2member/src/includes/classes/profile-mods.inc.php
- > /wp-content/plugins/s2member/src/includes/classes/s-badge-status.inc.php
- > /wp-content/plugins/s2member/src/includes/classes/menu-pages.inc.php
- > /wp-content/plugins/s2member/src/includes/classes/profile.inc.php
- > /wp-content/plugins/s2member/src/includes/classes/catgs-sp.inc.php
- > /wp-content/plugins/s2member/src/includes/classes/option-forces.inc.php
- > /wp-content/plugins/s2member/src/includes/functions/class-autoloader.inc.php
- > /wp-content/plugins/s2member/src/includes/templates/players/jwplayer-v7-rtmp.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/s2member/src/vendor/defuse/php-encryption/src/Exception/WrongKeyOrModifiedCiphertextException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'AWeberOAuthAdapter' not found in wp-content/plugins/s2member/src/includes/externals/aweber/oauth_application.php:58
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/s2member/src/vendor/defuse/php-encryption/src/Exception/IOException.php:5
- > PHP Fatal error
Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/s2member/src/includes/externals/aweber/aweber_collection.php:3
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/s2member/src/vendor/defuse/php-encryption/src/Exception/EnvironmentIsBrokenException.php:5
- > PHP Fatal error
Uncaught UnexpectedValueException: creating archive "wp-content/plugins/s2member/src/vendor/paragonie/random_compat/dist/random_compat.phar" disabled by the php.ini setting phar.readonly in /var/www/wordpress/wp-content/plugins/s2member/src/vendor/paragonie/random_compat/other/build_phar.php:12
- > PHP Warning
require_once(other/ide_stubs/libsodium.php): failed to open stream: No such file or directory in wp-content/plugins/s2member/src/vendor/paragonie/random_compat/psalm-autoload.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'AWeberAPIBase' not found in wp-content/plugins/s2member/src/includes/externals/aweber/aweber_response.php:15
- > PHP Fatal error
require_once(): Failed opening required 'other/ide_stubs/libsodium.php' (include_path='.:/usr/share/php') in wp-content/plugins/s2member/src/vendor/paragonie/random_compat/psalm-autoload.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/s2member/src/vendor/defuse/php-encryption/src/Exception/BadFormatException.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ws-plugin--s2member-start
- > Network (severe)
http://feeds.feedburner.com/s2member?format=sigpro&nItems=5&openLinks=new&displayTitle=false&displayFeedIcon=false&displayExcerpts=false&displayAuthor=false&displayDate=false&displayEnclosures=false&displayLinkToFeed=false - Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameSite
- > GET request to /wp-admin/admin.php?page=#
- > Network (severe)
wp-admin/admin.php?page=# - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Tested up to: Version not formatted correctly
s2member/s2member.php 92% from 13 tests
This is the main PHP file of "s2Member – Best Membership Plugin for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions" version 230815..., 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:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "230815...")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin36,546 lines of code in 275 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 254 | 7,230 | 19,584 | 32,170 |
JavaScript | 12 | 285 | 304 | 2,007 |
CSS | 3 | 105 | 135 | 1,884 |
INI | 1 | 10 | 0 | 305 |
JSON | 2 | 0 | 0 | 138 |
make | 1 | 9 | 4 | 24 |
XML | 1 | 0 | 0 | 15 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 600)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 47.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 614.00 |
Average method complexity | 12.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 600.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 212 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 212 | 100.00% |
▷ Final classes | 7 | 3.30% |
Methods | 889 | |
▷ Static methods | 561 | 63.10% |
▷ Public methods | 853 | 95.95% |
▷ Protected methods | 21 | 2.36% |
▷ Private methods | 15 | 1.69% |
Functions | 78 | |
▷ Named functions | 70 | 89.74% |
▷ Anonymous functions | 8 | 10.26% |
Constants | 104 | |
▷ Global constants | 76 | 73.08% |
▷ Class constants | 28 | 26.92% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
45 PNG files occupy 0.47MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/images/lock-icon.png | 0.52KB | 0.39KB | ▼ 26.03% |
src/images/large-icon.png | 11.90KB | 5.70KB | ▼ 52.07% |
src/images/wordpress-dark.png | 2.49KB | 1.95KB | ▼ 21.66% |
src/images/mailchimp-stamp.png | 25.43KB | 8.54KB | ▼ 66.43% |
src/images/brand-upsell-pro.png | 10.44KB | 5.24KB | ▼ 49.81% |