Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼130.45ms] Passed 4 tests
Server-side resources used by Restrict Taxonomies
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.25 | 42.03 ▲21.09 |
Dashboard /wp-admin | 3.23 ▲0.17 | 56.54 ▲7.93 |
Posts /wp-admin/edit.php | 3.34 ▲0.23 | 63.13 ▲9.99 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 111.94 ▼549.87 |
Media Library /wp-admin/upload.php | 3.17 ▲0.16 | 45.33 ▲10.16 |
Restrict Taxonomies /wp-admin/options-general.php?page=restrict-taxonomies | 3.15 | 34.31 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 3 new options
New WordPress options |
---|
RestrictTaxs_post_type_options |
RestrictTaxs-screen-options |
RestrictTaxs_general_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Restrict Taxonomies
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲136 | 15.93 ▲0.34 | 12.05 ▲1.04 | 59.46 ▲7.64 |
Dashboard /wp-admin | 2,971 ▲34 | 5.92 ▼0.05 | 163.59 ▲5.33 | 147.61 ▲19.49 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 78.69 ▲6.33 | 102.47 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,686 ▼2,001 | 18.45 ▲3.36 | 388.10 ▼104.45 | 114.90 ▼2.48 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.05 ▼0.06 | 166.84 ▲12.30 | 131.51 ▲3.92 |
Restrict Taxonomies /wp-admin/options-general.php?page=restrict-taxonomies | 1,785 | 2.46 | 62.14 | 87.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5495
unregister_setting was called with an argument that is deprecated since version 4.7.0! $sanitize_callback is deprecated. The callback from register_setting() is used instead.
- Zombie WordPress options were found after uninstall: 2 options
- RestrictTaxs-screen-options
- RestrictTaxs_general_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/restrict-taxonomies/restrict-taxonomies.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
8 plugin tags: administration, cms, categories, admin, restrict...
restrict-taxonomies/restrict-taxonomies.php Passed 13 tests
Analyzing the main PHP file in "Restrict Taxonomies" version 1.3.3
114 characters long description:
Based on Restrict Categories, restrict the taxonomies terms that users can view, add, and edit in the admin panel.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin698 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 177 | 269 | 679 |
JavaScript | 1 | 4 | 0 | 10 |
Markdown | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 6.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 80.00% |
▷ Protected methods | 5 | 16.67% |
▷ Private methods | 1 | 3.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin