Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼0.24ms] Passed 4 tests
This is a short check of server-side resources used by YourMembership Single Sign On - YM SSO Login
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 41.98 ▼0.18 |
Dashboard /wp-admin | 3.58 ▲0.28 | 45.71 ▼2.56 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 48.52 ▲0.73 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 86.93 ▲1.04 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 39.36 ▲1.18 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_moym_login_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YourMembership Single Sign On - YM SSO Login
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲88 | 13.23 ▼1.24 | 1.70 ▲0.04 | 44.09 ▼2.46 |
Dashboard /wp-admin | 2,227 ▲36 | 5.86 ▲1.01 | 99.57 ▼1.15 | 88.08 ▲50.36 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.06 ▲0.06 | 35.05 ▼0.82 | 33.06 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,686 ▲152 | 21.08 ▼2.44 | 731.70 ▲28.92 | 46.81 ▼21.64 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.29 ▲0.18 | 96.00 ▼9.42 | 65.71 ▲17.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_moym_login_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: ym login, ym, membership login, yourmembership, membership...
login-with-yourmembership/moym-settings.php 92% from 13 tests
The main PHP file in "YourMembership Single Sign On - YM SSO Login" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("login-with-yourmembership.php" instead of "moym-settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,999 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 243 | 543 | 1,883 |
CSS | 2 | 315 | 17 | 1,115 |
JavaScript | 1 | 0 | 8 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
10 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/edit.png | 3.64KB | 3.62KB | ▼ 0.62% |
(invalid) includes/images/ym_image.png | 3.80KB | 0.00KB | ▼ 100.00% |
includes/images/normal.png | 15.74KB | 7.91KB | ▼ 49.78% |
includes/images/happy.png | 18.06KB | 9.04KB | ▼ 49.98% |
includes/images/flags16.png | 61.80KB | 19.90KB | ▼ 67.79% |