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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼9.14ms] Passed 4 tests
A check of server-side resources used by WP Author Security
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 41.53 ▼3.95 |
Dashboard /wp-admin | 3.44 ▲0.09 | 50.67 ▼13.39 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.74 ▼8.34 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 86.88 ▼10.87 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.84 ▲4.39 |
WP Author Security /wp-admin/options-general.php?page=wp-author-security-options | 3.34 | 35.00 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: 1 new table, 15 new options
New tables |
---|
wp_wpas_statisticmeta |
New WordPress options |
---|
can_compress_scripts |
wpas_filterAuthorSitemap |
disableRestUser |
wpas_filterEmbed |
wpas_db_version |
wpas_filterFeed |
protectAuthor |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
... |
Browser metrics Passed 4 tests
WP Author Security: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.27 ▼1.14 | 1.65 ▼0.13 | 43.37 ▼0.42 |
Dashboard /wp-admin | 2,207 ▲16 | 4.84 ▼0.04 | 110.74 ▲9.01 | 39.11 ▼4.41 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.02 | 34.60 ▼1.66 | 32.28 ▼2.53 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.59 ▲0.38 | 645.44 ▲37.94 | 49.74 ▼5.76 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.19 ▼0.02 | 94.98 ▼4.24 | 40.76 ▼1.49 |
WP Author Security /wp-admin/options-general.php?page=wp-author-security-options | 964 | 2.03 | 22.42 | 27.22 |
Uninstaller [IO: ▲0.00MB] [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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: user-enumeration, author, privacy, security, wpscan
wp-author-security/wp-author-security.php Passed 13 tests
The primary PHP file in "WP Author Security" version 1.5.0 is used by WordPress to initiate all plugin functionality
113 characters long description:
Protect against user enumeration attacks on author pages and other places where valid user names can be obtained.
Code Analysis Passed 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 detected559 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 83 | 126 | 490 |
PO File | 1 | 27 | 29 | 69 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 3 | 23.08% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin