Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼296.36ms] Passed 4 tests
An overview of server-side resources used by Restricted Authors - by iWriteCode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 55.02 ▼0.36 |
Dashboard /wp-admin | 3.43 ▲0.03 | 32.58 ▼0.02 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.94 ▼1.02 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 90.68 ▼1,184.03 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.04 ▲0.79 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Restricted Authors - by iWriteCode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 16.18 ▲0.40 | 5.62 ▼0.13 | 2.22 ▼0.22 |
Dashboard /wp-admin | 2,888 ▲30 | 6.08 ▼0.14 | 119.08 ▼9.27 | 155.57 ▼2.28 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.37 ▲0.14 | 64.36 ▼1.16 | 140.09 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,773 ▲112 | 21.82 ▲5.31 | 417.45 ▼8.58 | 160.46 ▲5.20 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.51 ▼0.02 | 145.91 ▲6.55 | 191.03 ▲9.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/restricted-authors/includes/Views/profile-fields.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: restrict authors, multiple author, restrict default category, restrict category, author management
restricted-authors/restricted-authors.php 85% from 13 tests
The entry point to "Restricted Authors - by iWriteCode" version 1.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
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
Everything looks great! No dangerous files found in this plugin6,961 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,206 | 792 | 4,847 |
PO File | 21 | 231 | 231 | 1,004 |
CSS | 3 | 71 | 9 | 618 |
Sass | 1 | 24 | 0 | 344 |
PHP | 2 | 60 | 137 | 148 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin