Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.63ms] Passed 4 tests
A check of server-side resources used by RS User Access
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.58 ▼3.64 |
Dashboard /wp-admin | 3.39 ▲0.08 | 55.36 ▲0.26 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.98 ▼4.98 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 87.54 ▼10.14 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.30 ▲0.23 |
Server storage [IO: ▲0.73MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 31 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_rs_admin_pages |
New WordPress options |
---|
theysaidso_admin_options |
rs_admin_pages_db_version |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for RS User Access
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲127 | 13.53 ▼0.70 | 8.34 ▲6.53 | 43.89 ▼2.81 |
Dashboard /wp-admin | 2,211 ▲31 | 5.54 ▼0.16 | 85.66 ▼0.90 | 39.08 ▼6.10 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.03 ▲0.04 | 35.79 ▼8.60 | 36.43 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.24 ▲5.62 | 668.09 ▲35.81 | 60.07 ▲1.48 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.24 ▲0.03 | 97.75 ▼2.70 | 46.11 ▲3.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/rs-user-access/admin/views/admin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Contributors: Plugin contributors field is missing
rs-user-access/hide-admin.php 92% from 13 tests
The main file in "RS User Access" v. 1.0.0 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: Name the main plugin file the same as the plugin slug ("rs-user-access.php" instead of "hide-admin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,052 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 565 |
PHP | 7 | 126 | 106 | 372 |
CSS | 3 | 14 | 5 | 63 |
JavaScript | 2 | 17 | 8 | 52 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 8 | 25.81% |
▷ Public methods | 21 | 67.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 32.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
There were not PNG files found in your plugin