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.01MB] [CPU: ▼3.68ms] Passed 4 tests
Server-side resources used by Content By Role
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.19 ▼3.45 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.39 ▼6.43 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.09 ▼2.24 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.38 ▼2.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 38.78 ▼0.50 |
Content By Role /wp-admin/options-general.php?page=content_by_role | 3.25 | 33.88 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_content_by_role |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Content By Role
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▼0.02 | 1.61 ▼0.21 | 43.62 ▼1.73 |
Dashboard /wp-admin | 2,204 ▲27 | 5.63 ▲0.11 | 88.62 ▼12.31 | 40.55 ▼7.87 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.01 ▼0.01 | 38.77 ▲2.63 | 35.03 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.91 ▼0.30 | 655.53 ▼7.65 | 56.81 ▲4.24 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.11 ▼0.03 | 109.46 ▲8.04 | 47.50 ▲3.55 |
Content By Role /wp-admin/options-general.php?page=content_by_role | 891 | 2.03 | 25.66 | 26.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== content-by-role ===
)
content-by-role/content-by-role.php Passed 13 tests
The entry point to "Content By Role" version 1.0.0 is a PHP file that has certain tags in its header comment area
100 characters long description:
Allows multiple redirects to be added to a restricted page based off of the user's role on the site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin457 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 196 | 497 | 399 |
CSS | 1 | 8 | 9 | 42 |
XML | 2 | 0 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 17 | 73.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 26.09% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected