Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▲4.49ms] Passed 4 tests
A check of server-side resources used by PublishPress Capabilities - User Role Editor, Access Permissions, Admin Menus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 46.31 ▲5.71 |
Dashboard /wp-admin | 3.57 ▲0.26 | 49.72 ▲0.81 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 52.58 ▲6.39 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 106.07 ▲11.01 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.21 ▲5.04 |
Capabilities /wp-admin/admin.php?page=pp-capabilities | 4.11 | 70.04 |
Admin Features /wp-admin/admin.php?page=pp-capabilities-admin-features | 3.58 | 44.79 |
Settings /wp-admin/admin.php?page=pp-capabilities-settings | 3.54 | 39.21 |
Roles /wp-admin/admin.php?page=pp-capabilities-roles | 3.56 | 44.72 |
Nav Menus /wp-admin/admin.php?page=pp-capabilities-nav-menus | 3.58 | 39.16 |
Admin Menus /wp-admin/admin.php?page=pp-capabilities-admin-menus | 3.49 | 37.27 |
Editor Features /wp-admin/admin.php?page=pp-capabilities-editor-features | 3.57 | 37.98 |
Backup /wp-admin/admin.php?page=pp-capabilities-backup | 3.65 | 41.08 |
Profile Features /wp-admin/admin.php?page=pp-capabilities-profile-features | 3.55 | 38.58 |
Upgrade to Pro /wp-admin/admin.php?page=pp-capabilities-dashboard-menu-upgrade-link | 3.41 | 36.48 |
Server storage [IO: ▲2.76MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 218 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
PUBLISHPRESS_CAPS_VERSION |
widget_recent-comments |
capsman_version |
capability-manager-enhanced_wp_reviews_installed_on |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PublishPress Capabilities - User Role Editor, Access Permissions, Admin Menus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲102 | 14.67 ▲0.40 | 1.70 ▼0.04 | 34.55 ▼11.11 |
Dashboard /wp-admin | 2,272 ▲95 | 5.60 ▲0.06 | 94.66 ▼4.01 | 48.61 ▲5.56 |
Posts /wp-admin/edit.php | 2,180 ▲77 | 2.02 ▲0.08 | 43.54 ▲3.73 | 38.12 ▲3.67 |
Add New Post /wp-admin/post-new.php | 1,584 ▲58 | 23.01 ▲0.04 | 664.80 ▼60.51 | 54.02 ▼7.24 |
Media Library /wp-admin/upload.php | 1,474 ▲77 | 4.34 ▲0.19 | 99.62 ▼17.64 | 44.81 ▼1.33 |
Capabilities /wp-admin/admin.php?page=pp-capabilities | 5,795 | 2.30 | 49.97 | 48.00 |
Admin Features /wp-admin/admin.php?page=pp-capabilities-admin-features | 2,261 | 2.17 | 33.15 | 54.81 |
Settings /wp-admin/admin.php?page=pp-capabilities-settings | 1,421 | 2.18 | 36.32 | 42.98 |
Roles /wp-admin/admin.php?page=pp-capabilities-roles | 1,491 | 1.99 | 31.57 | 43.66 |
Nav Menus /wp-admin/admin.php?page=pp-capabilities-nav-menus | 1,344 | 1.85 | 29.87 | 41.97 |
Admin Menus /wp-admin/admin.php?page=pp-capabilities-admin-menus | 1,038 | 1.85 | 28.05 | 55.09 |
Editor Features /wp-admin/admin.php?page=pp-capabilities-editor-features | 2,832 | 1.92 | 30.10 | 48.60 |
Backup /wp-admin/admin.php?page=pp-capabilities-backup | 2,032 | 1.87 | 29.70 | 44.37 |
Profile Features /wp-admin/admin.php?page=pp-capabilities-profile-features | 1,374 | 2.09 | 33.47 | 44.87 |
Upgrade to Pro /wp-admin/admin.php?page=pp-capabilities-dashboard-menu-upgrade-link | 2,724 | 2.49 | 45.88 | 81.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- capsman_version
- capability-manager-enhanced_wp_reviews_installed_on
- PUBLISHPRESS_CAPS_VERSION
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 31× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/capability-manager-enhanced/includes/plugin-capabilities/publishpress.php
- > /wp-content/plugins/capability-manager-enhanced/includes/plugin-capabilities/backwpup.php
- > /wp-content/plugins/capability-manager-enhanced/includes/plugin-capabilities/fluent-forms.php
- > /wp-content/plugins/capability-manager-enhanced/includes/plugin-capabilities/sfwd-lms.php
- > /wp-content/plugins/capability-manager-enhanced/includes/plugin-capabilities/give.php
- > /wp-content/plugins/capability-manager-enhanced/includes/plugin-capabilities/seo-by-rank-math.php
- > /wp-content/plugins/capability-manager-enhanced/lib/vendor/publishpress/wordpress-version-notices/templates/menu-link/menu-link-script.php
- > /wp-content/plugins/capability-manager-enhanced/includes/plugin-capabilities/google-site-kit.php
- > /wp-content/plugins/capability-manager-enhanced/includes/plugin-capabilities/buddypress.php
- > /wp-content/plugins/capability-manager-enhanced/includes/plugin-capabilities/gravityview.php
- 69× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(./includes/features/frontend-features/frontend-features-data.php): failed to open stream: No such file or directory in wp-content/plugins/capability-manager-enhanced/includes/features/frontend-features/frontend-features.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'PP_Capabilities_Test_User' not found in wp-content/plugins/capability-manager-enhanced/includes/test-user-ui.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/capability-manager-enhanced/includes/manager.php:36
- > PHP Warning
Use of undefined constant CME_FILE - assumed 'CME_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/capability-manager-enhanced/includes/features/frontend-features/frontend-features.php on line 24
- > PHP Fatal error
Uncaught Error: Interface 'PublishPress\\Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/capability-manager-enhanced/lib/vendor/publishpress/pimple-pimple/lib/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php:39
- > PHP Warning
require_once(./includes/features/frontend-features/frontend-features-data.php): failed to open stream: No such file or directory in wp-content/plugins/capability-manager-enhanced/includes/features/frontend-features/frontend-features-metaboxes.php on line 7
- > PHP Fatal error
require_once(): Failed opening required './includes/features/restrict-editor-features.php' (include_path='.:/usr/share/php') in wp-content/plugins/capability-manager-enhanced/includes/features/editor-features.php on line 21
- > PHP Notice
Trying to get property 'roles' of non-object in wp-content/plugins/capability-manager-enhanced/includes/features/nav-menus.php on line 22
- > PHP Warning
Class 'PublishPress\\WordpressVersionNotices\\Template\\TemplateLoaderInterface' not found in wp-content/plugins/capability-manager-enhanced/lib/vendor/publishpress/wordpress-version-notices/src/deprecated.php on line 29
- > PHP Fatal error
require_once(): Failed opening required './includes/features/restrict-admin-features.php' (include_path='.:/usr/share/php') in wp-content/plugins/capability-manager-enhanced/includes/features/admin-features.php on line 21
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 30 tag instead of maximum 10
capability-manager-enhanced/capsman-enhanced.php 85% from 13 tests
The primary PHP file in "PublishPress Capabilities - User Role Editor, Access Permissions, Admin Menus" version 2.10.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("capability-manager-enhanced.php" instead of "capsman-enhanced.php")
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
No dangerous file extensions were detected33,916 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 144 | 3,502 | 4,880 | 15,883 |
PO File | 9 | 4,263 | 5,393 | 11,457 |
JavaScript | 9 | 420 | 261 | 3,567 |
CSS | 9 | 508 | 134 | 2,514 |
JSON | 3 | 0 | 0 | 476 |
Markdown | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 27.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 291.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 1 | 1.54% |
▷ Concrete classes | 64 | 98.46% |
▷ Final classes | 2 | 3.12% |
Methods | 474 | |
▷ Static methods | 103 | 21.73% |
▷ Public methods | 386 | 81.43% |
▷ Protected methods | 33 | 6.96% |
▷ Private methods | 55 | 11.60% |
Functions | 157 | |
▷ Named functions | 95 | 60.51% |
▷ Anonymous functions | 62 | 39.49% |
Constants | 30 | |
▷ Global constants | 22 | 73.33% |
▷ Class constants | 8 | 26.67% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/libs/chosen-v1.8.7/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
images/play.png | 2.08KB | 1.10KB | ▼ 46.87% |
common/img/publishpress-logo.png | 8.69KB | 8.91KB | 0.00% |
common/img/publishpress-logo-icon.png | 13.05KB | 4.10KB | ▼ 68.61% |
common/img/capabilities-wp-logo.png | 40.38KB | 21.28KB | ▼ 47.29% |