Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼29.82ms] Passed 4 tests
This is a short check of server-side resources used by Editor Appearance Access
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.08 ▲1.06 |
Dashboard /wp-admin | 3.00 ▼0.30 | 22.27 ▼24.17 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 21.81 ▼21.05 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 23.93 ▼61.36 |
Media Library /wp-admin/upload.php | 3.00 ▼0.22 | 21.77 ▼12.69 |
Editor Appearance Access /wp-admin/options-general.php?page=beaa-options | 3.01 | 25.02 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Editor Appearance Access: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.31 ▼1.04 | 8.27 ▲6.75 | 44.39 ▲3.97 |
Dashboard /wp-admin | 2,200 ▲23 | 5.52 ▼0.00 | 80.34 ▼11.55 | 37.88 ▼2.56 |
Posts /wp-admin/edit.php | 2,105 ▲8 | 2.02 ▼0.13 | 33.52 ▼2.04 | 36.15 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,533 ▼5 | 23.15 ▼0.06 | 687.85 ▲40.58 | 58.34 ▼5.22 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.21 ▼0.01 | 108.06 ▲6.71 | 45.93 ▲0.98 |
Editor Appearance Access /wp-admin/options-general.php?page=beaa-options | 832 | 2.03 | 27.57 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/editor-appearance-access/admin/class-editor-appearance-access-admin-display.php+135
array_key_exists() expects parameter 2 to be array, bool given
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=beaa-options
- > Warning in wp-content/plugins/editor-appearance-access/admin/class-editor-appearance-access-admin-display.php+143
array_key_exists() expects parameter 2 to be array, bool given
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/editor-appearance-access/public/partials/editor-appearance-access-public-display.php
- > /wp-content/plugins/editor-appearance-access/admin/partials/editor-appearance-access-admin-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/editor-appearance-access/admin/class-editor-appearance-access-admin-display.php:33
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #1 is required in editor-appearance-access/assets to your readme.txt
editor-appearance-access/editor-appearance-access.php Passed 13 tests
This is the main PHP file of "Editor Appearance Access" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
Grants the Editor user role access to selected menus under the Appearance menu.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin317 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 162 | 572 | 295 |
CSS | 2 | 4 | 8 | 16 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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 were not PNG files found in your plugin