Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.58ms] Passed 4 tests
A check of server-side resources used by Custom roles for author
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.50 ▼4.73 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.85 ▼6.43 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.05 ▲0.54 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 97.24 ▲5.41 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.72 ▼3.70 |
Custom roles 4 author /wp-admin/users.php?page=custom-roles-for-author | 3.22 | 33.60 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom roles for author
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.30 | 1.80 ▲0.28 | 41.86 ▼1.47 |
Dashboard /wp-admin | 2,199 ▲25 | 5.61 ▲0.02 | 89.23 ▼4.48 | 41.05 ▼1.92 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.01 | 40.87 ▼2.07 | 35.66 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 18.11 ▼5.02 | 616.34 ▲14.96 | 78.80 ▲14.60 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.22 ▲0.02 | 99.91 ▼7.03 | 43.77 ▼2.58 |
Custom roles 4 author /wp-admin/users.php?page=custom-roles-for-author | 835 | 2.03 | 24.37 | 29.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-roles-for-author/custom-roles-for-author.php:12
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
custom-roles-for-author/custom-roles-for-author.php Passed 13 tests
"Custom roles for author" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
Allows to set users with custom role as post/page/custom post type author.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected123 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 29 | 9 | 123 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin