Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/rs-members/rsmembers.php+160
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.33MB] [CPU: ▼15.61ms] Passed 4 tests
Server-side resources used by RS-Members
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 40.44 ▼1.95 |
Dashboard /wp-admin | 4.05 ▲0.74 | 57.88 ▲1.59 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 62.74 ▲6.84 |
Add New Post /wp-admin/post-new.php | 5.25 ▼0.64 | 52.44 ▼60.11 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 38.80 ▼1.97 |
Server storage [IO: ▲1.10MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 68 new options
New WordPress options |
---|
rs_restore_default_settings |
rs_show_login_messages |
rs_windowslive_api_id |
rs_reddit_api_secret |
rs_linkedin_api_secret |
rs_login_redirect_url |
rs_instagram_api_secret |
widget_theysaidso_widget |
rs_logout_inactive_users |
rs_github_api_id |
... |
Browser metrics Passed 4 tests
Checking browser requirements for RS-Members
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,114 ▲353 | 15.43 ▲0.98 | 7.65 ▲5.72 | 40.45 ▼3.86 |
Dashboard /wp-admin | 2,379 ▲199 | 6.53 ▲0.81 | 122.02 ▲31.26 | 36.57 ▼4.13 |
Posts /wp-admin/edit.php | 2,310 ▲210 | 3.72 ▲1.71 | 56.05 ▲20.31 | 34.11 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,724 ▲170 | 21.41 ▲3.13 | 652.71 ▼24.43 | 49.35 ▼4.66 |
Media Library /wp-admin/upload.php | 1,448 ▲51 | 4.51 ▲0.25 | 85.24 ▼28.55 | 46.78 ▼2.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 68 options
- rs_suppress_welcome_email
- rs_facebook_api_enabled
- widget_rsmemberssignup
- rs_login_redirect_page
- widget_recent-posts
- rs_linkedin_api_secret
- rs_instagram_api_id
- rs_logout_redirect
- rs_reddit_api_enabled
- rs_instagram_api_secret
- ...
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-members/login-instagram.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-members/login-google.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-members/login-paypal.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-members/login-twitter.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-members/login-reddit.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rs-members/include/rsmembers-widget-login.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-members/login-facebook.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-members/register.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-members/login-linkedin.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rs-members/include/rsmembers-widget-signup.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
rs-members/rsmembers.php 92% from 13 tests
The main file in "RS-Members" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("rs-members.php" instead of "rsmembers.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected8,769 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,051 | 931 | 5,505 |
JavaScript | 8 | 262 | 320 | 1,915 |
CSS | 8 | 139 | 91 | 829 |
SVG | 1 | 0 | 0 | 520 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 58.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 199.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 8 | 5.71% |
▷ Public methods | 124 | 88.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 11.43% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 79 | |
▷ Global constants | 75 | 94.94% |
▷ Class constants | 4 | 5.06% |
▷ Public constants | 4 | 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
13 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/icons/google.png | 3.93KB | 0.67KB | ▼ 82.92% |
include/icons/instagram.png | 3.86KB | 0.86KB | ▼ 77.60% |
assets/css/images/corners.png | 0.38KB | 0.33KB | ▼ 12.92% |
assets/js/C_restric.png | 0.44KB | 0.48KB | 0.00% |
assets/css/images/sides.png | 0.13KB | 0.09KB | ▼ 28.68% |