Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.30ms] Passed 4 tests
A check of server-side resources used by Restrict User Taxonomies
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.01 ▼3.68 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.32 ▲1.18 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 48.90 ▼1.82 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 97.26 ▲7.42 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 37.31 ▲5.53 |
Restrict Taxonomies /wp-admin/options-general.php?page=sgi-restrict-user-taxonomies | 3.25 | 31.55 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
sgi_rat_ver |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Restrict User Taxonomies
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.42 ▲0.05 | 2.00 ▼0.30 | 48.81 ▲0.26 |
Dashboard /wp-admin | 2,207 ▲33 | 5.86 ▲0.98 | 110.51 ▼11.52 | 41.88 ▼3.67 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.02 | 39.89 ▼1.94 | 36.08 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 22.95 ▲5.40 | 635.68 ▼60.12 | 49.68 ▼16.16 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.28 ▼0.02 | 99.95 ▼3.75 | 42.21 ▼1.67 |
Restrict Taxonomies /wp-admin/options-general.php?page=sgi-restrict-user-taxonomies | 876 | 2.02 | 22.76 | 27.95 |
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: 7 options
- sgi_rat_ver
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sgi-restrict-user-taxonomies
- > Notice in wp-content/plugins/restrict-user-taxonomies/lib/backend/rat-admin-settings.php+219
Undefined index: include_children
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2 in restrict-user-taxonomies/assets to your readme.txt
restrict-user-taxonomies/restrict-user-taxonomies.php Passed 13 tests
The main file in "Restrict User Taxonomies" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
131 characters long description:
Based on Restrict Categories, this plugin allows you to restrict post adding, viewing and editing based on selected taxonomy terms.
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 detected482 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 280 | 37 | 477 |
JavaScript | 2 | 0 | 0 | 4 |
CSS | 1 | 0 | 0 | 1 |
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.28 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 82.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 17.39% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin