Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.76ms] Passed 4 tests
An overview of server-side resources used by Restrict Categories
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.30 ▲2.04 |
Dashboard /wp-admin | 3.43 ▲0.12 | 58.53 ▲1.14 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 53.46 ▼1.64 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 94.88 ▼8.57 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.57 ▲2.71 |
Restrict Categories /wp-admin/options-general.php?page=restrict-categories | 3.33 | 39.34 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
RestrictCats_options |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
RestrictCats_user_options |
RestrictCats-screen-options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Restrict Categories
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.03 | 1.92 ▲0.36 | 42.92 ▼1.11 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.06 | 91.03 ▼6.03 | 41.70 ▼3.06 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▼0.04 | 39.06 ▼2.97 | 36.30 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.36 ▲0.17 | 609.68 ▼55.09 | 57.44 ▲5.19 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▲0.03 | 105.00 ▲4.28 | 42.64 ▼1.63 |
Restrict Categories /wp-admin/options-general.php?page=restrict-categories | 1,236 | 2.18 | 28.36 | 28.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- RestrictCats-screen-options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/restrict-categories/restrict-categories.php:968
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: cms, category, administration, restrict, categories...
restrict-categories/restrict-categories.php Passed 13 tests
The principal PHP file in "Restrict Categories" v. 2.6.4 is loaded by WordPress automatically on each request
78 characters long description:
Restrict the categories 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 review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin579 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 173 | 280 | 566 |
JavaScript | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 38.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 1 | 3.33% |
▷ Public methods | 23 | 76.67% |
▷ Protected methods | 5 | 16.67% |
▷ Private methods | 2 | 6.67% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin