Benchmarks
Plugin footprint 40% 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
- > Warning in wp-content/plugins/sn-extend-authentication/metabox.class.php+31
array_push() expects parameter 1 to be array, null given
Server metrics [RAM: ▼1.84MB] [CPU: ▼52.21ms] Passed 4 tests
Analyzing server-side resources used by SN Extend Authentication
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 7.60 ▼37.52 |
Dashboard /wp-admin | 2.16 ▼1.14 | 8.41 ▼44.70 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 7.98 ▼37.43 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 8.74 ▼89.20 |
Media Library /wp-admin/upload.php | 2.16 ▼1.06 | 7.57 ▼25.09 |
Authentication Settings /wp-admin/options-general.php?page=authentication-setting-admin | 2.17 | 8.89 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by SN Extend Authentication
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 14.44 ▲0.03 | 2.13 ▲0.26 | 51.34 ▲8.48 |
Dashboard /wp-admin | 2,212 ▲24 | 4.87 ▼0.01 | 109.49 ▼6.54 | 41.92 ▼7.74 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▲0.09 | 39.07 ▲4.80 | 36.70 ▲2.14 |
Add New Post /wp-admin/post-new.php | 45 ▼1,469 | 0.44 ▼17.13 | 0.08 ▼694.10 | 9.50 ▼45.86 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.16 ▼0.02 | 104.71 ▼5.14 | 64.36 ▲16.63 |
Authentication Settings /wp-admin/options-general.php?page=authentication-setting-admin | 794 | 2.06 | 23.15 | 33.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the authentication-styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=authentication-setting-admin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the authentication-styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=authentication-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=authentication-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/sn-extend-authentication/sn-extend-authentication.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Invalid URI ("")
sn-extend-authentication/sn-extend-authentication.php Passed 13 tests
Analyzing the main PHP file in "SN Extend Authentication" version 1.3
116 characters long description:
Plugin allows admin to disable anonymous users browsing of selective posts, pages, feeds or complete WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,216 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 170 | 175 | 1,177 |
CSS | 1 | 7 | 0 | 39 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 65.75 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 79.01% |
▷ Protected methods | 15 | 18.52% |
▷ Private methods | 2 | 2.47% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected