Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.49MB] [CPU: ▼4.15ms] Passed 4 tests
Analyzing server-side resources used by netFORUM Single Sign On
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 39.97 ▲4.10 |
Dashboard /wp-admin | 3.83 ▲0.48 | 48.79 ▼14.12 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 45.74 ▲1.66 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 83.96 ▼8.22 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 47.34 ▲13.77 |
Cache /wp-admin/admin.php?page=netforum_cache | 3.77 | 35.70 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 3.92 | 34.56 |
Help /wp-admin/admin.php?page=netforum_help | 3.75 | 34.05 |
General /wp-admin/admin.php?page=netforum | 3.70 | 32.87 |
Server storage [IO: ▲4.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 207 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-posts |
fs_accounts |
widget_recent-comments |
fs_gdpr |
fs_active_plugins |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for netFORUM Single Sign On
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲116 | 14.47 ▼0.13 | 1.78 ▲0.06 | 34.34 ▼4.85 |
Dashboard /wp-admin | 2,269 ▲84 | 5.85 ▼0.03 | 94.51 ▼14.99 | 63.47 ▲21.28 |
Posts /wp-admin/edit.php | 2,155 ▲66 | 2.03 ▲0.00 | 35.68 ▼5.25 | 34.85 ▲2.73 |
Add New Post /wp-admin/post-new.php | 1,710 ▲190 | 22.45 ▼0.61 | 687.06 ▲7.20 | 47.17 ▼10.76 |
Media Library /wp-admin/upload.php | 1,451 ▲63 | 4.23 ▲0.03 | 94.31 ▼18.54 | 75.22 ▲28.51 |
Cache /wp-admin/admin.php?page=netforum_cache | 909 | 2.18 | 24.41 | 43.29 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,095 | 1.68 | 23.76 | 25.78 |
Help /wp-admin/admin.php?page=netforum_help | 958 | 2.18 | 24.16 | 34.73 |
General /wp-admin/admin.php?page=netforum | 935 | 2.19 | 25.74 | 35.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/avectra-netforum-single-sign-on/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- db_upgraded
- fs_debug_mode
- fs_accounts
- theysaidso_admin_options
- fs_gdpr
- fs_active_plugins
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=netforum
- > Notice in wp-content/plugins/avectra-netforum-single-sign-on/src/WP/Views/View.php+17
Only variables should be passed by reference
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=netforum
- > Notice in wp-content/plugins/avectra-netforum-single-sign-on/src/WP/Views/View.php+66
Undefined index: callback
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=netforum
- > Notice in wp-content/plugins/avectra-netforum-single-sign-on/src/WP/Views/View.php+77
Undefined index: filter
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=netforum
- > Notice in wp-content/plugins/avectra-netforum-single-sign-on/src/WP/Views/View.php+77
Undefined index: js
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=netforum
- > Notice in wp-content/plugins/avectra-netforum-single-sign-on/src/WP/Views/View.php+77
Undefined index: default
SRP 50% from 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
Please fix the following
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\View' not found in wp-content/plugins/avectra-netforum-single-sign-on/src/NetAuth/Views/Netforum.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\Form' not found in wp-content/plugins/avectra-netforum-single-sign-on/src/WP/Views/View.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\View' not found in wp-content/plugins/avectra-netforum-single-sign-on/src/NetAuth/Views/NetforumHelp.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\View' not found in wp-content/plugins/avectra-netforum-single-sign-on/src/NetAuth/Views/NetforumCache.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\Page' not found in wp-content/plugins/avectra-netforum-single-sign-on/src/NetAuth/Views/Render.php:8
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/avectra-netforum-single-sign-on/src/Netforum/Request.php:8
- > PHP Fatal error
Trait 'WP\\Traits\\Helpers' not found in wp-content/plugins/avectra-netforum-single-sign-on/src/WP/Views/Page.php on line 7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=netforum_cache
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=netforum_cache 162:310 Uncaught SyntaxError: missing ) after argument list
- > GET request to /wp-admin/admin.php?page=netforum_help
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=netforum_help 202:310 Uncaught SyntaxError: missing ) after argument list
- > GET request to /wp-admin/admin.php?page=netforum
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=netforum 163:310 Uncaught SyntaxError: missing ) after argument list
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Enter your netFORUM xWeb URL and credentials in the Plugin Settings.)
avectra-netforum-single-sign-on/avectra-netforum-single-sign-on.php Passed 13 tests
The entry point to "netFORUM Single Sign On" version 1.3.4 is a PHP file that has certain tags in its header comment area
74 characters long description:
Authenticate users to sign in using Avectra netFORUM credentials via xWeb.
Code Analysis 97% from 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 plugin46,766 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 7,410 | 16,055 | 31,089 |
PO File | 12 | 6,951 | 8,444 | 15,222 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 4 | 35 | 59 | 200 |
JSON | 1 | 0 | 0 | 27 |
CSS | 11 | 0 | 0 | 14 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 67.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 60 | |
▷ Abstract classes | 4 | 6.67% |
▷ Concrete classes | 56 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 1,213 | |
▷ Static methods | 209 | 17.23% |
▷ Public methods | 845 | 69.66% |
▷ Protected methods | 34 | 2.80% |
▷ Private methods | 334 | 27.54% |
Functions | 120 | |
▷ Named functions | 110 | 91.67% |
▷ Anonymous functions | 10 | 8.33% |
Constants | 134 | |
▷ Global constants | 109 | 81.34% |
▷ Class constants | 25 | 18.66% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.47MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo_big.png | 83.09KB | 23.23KB | ▼ 72.04% |
assets/screenshot-2.png | 80.46KB | 29.16KB | ▼ 63.76% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/avectra-netforum-single-sign-on.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/banner-772x250.png | 49.49KB | 13.78KB | ▼ 72.16% |