Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.16ms] Passed 4 tests
A check of server-side resources used by Editor Menu and Widget Access
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.69 ▲0.88 |
Dashboard /wp-admin | 3.44 ▲0.10 | 49.58 ▼7.55 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 52.49 ▲4.18 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 92.55 ▼11.61 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.03 ▲1.63 |
Editor Access /wp-admin/themes.php?page=editorMenuWidgetAccess | 3.33 | 31.74 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
emwa_role_string |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Editor Menu and Widget Access
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.27 ▼1.10 | 5.87 ▲4.31 | 44.34 ▲1.78 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼0.05 | 96.22 ▼2.43 | 38.56 ▼5.66 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.01 | 40.16 ▲6.85 | 34.46 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,536 ▲14 | 22.97 ▼0.08 | 612.70 ▼69.48 | 74.27 ▲20.97 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.31 ▲0.12 | 92.74 ▼5.55 | 41.57 ▼5.40 |
Editor Access /wp-admin/themes.php?page=editorMenuWidgetAccess | 1,123 | 2.16 | 24.56 | 34.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- emwa_role_string
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (21 tag instead of maximum 10)
editor-menu-and-widget-access/editor-menu-widget-access.php 85% from 13 tests
The primary PHP file in "Editor Menu and Widget Access" version 3.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("editor-menu-and-widget-access.php" instead of "editor-menu-widget-access.php")
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
Good job! No executable or dangerous file extensions detected1,580 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 168 | 63 | 686 |
PO File | 5 | 222 | 222 | 586 |
CSS | 1 | 0 | 0 | 142 |
LESS | 1 | 30 | 6 | 137 |
Markdown | 1 | 17 | 0 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin