Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▲0.68ms] Passed 4 tests
Server-side resources used by Controlled Admin Access
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 43.32 ▼1.27 |
Dashboard /wp-admin | 3.66 ▲0.36 | 51.76 ▲5.39 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 56.49 ▲13.21 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 91.51 ▼11.67 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 43.63 ▲10.25 |
Server storage [IO: ▲0.27MB] [DB: ▲0.34MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
_wpruby_caa_lite_latest_migrated_version |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
_wpruby_caa_lite_migration_200 |
widget_theysaidso_widget |
_caa_all_menu_slugs |
Browser metrics Passed 4 tests
Controlled Admin Access: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.33 ▼0.92 | 1.71 ▼0.63 | 45.35 ▲1.59 |
Dashboard /wp-admin | 2,221 ▲30 | 4.87 ▼0.01 | 97.79 ▼2.97 | 37.89 ▼8.67 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.01 ▼0.01 | 39.38 ▲3.62 | 33.66 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,543 ▲1 | 23.57 ▲5.37 | 666.83 ▲57.03 | 55.64 ▲1.24 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.20 ▲0.01 | 97.14 ▲0.74 | 43.14 ▲2.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.34MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- _wpruby_caa_lite_latest_migrated_version
- theysaidso_admin_options
- can_compress_scripts
- _caa_all_menu_slugs
- widget_theysaidso_widget
- _wpruby_caa_lite_migration_200
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/controlled-admin-access/core/app/backend/endpoints/views/view-email-login-link.php
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
require_once(ABSPATHWPINC/user.php): failed to open stream: No such file or directory in wp-content/plugins/controlled-admin-access/core/app/backend/endpoints/class-delete-user-endpoint.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WPRuby_CAA\\Core\\App\\Backend\\Endpoints\\Abstract_Endpoint' not found in wp-content/plugins/controlled-admin-access/core/app/backend/endpoints/class-get-settings-endpoint.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/controlled-admin-access/core/app/backend/endpoints/views/view-email-login-link.php:118
- > PHP Fatal error
Uncaught Error: Class 'WPRuby_CAA\\Core\\App\\Backend\\Endpoints\\Abstract_Endpoint' not found in wp-content/plugins/controlled-admin-access/core/app/backend/endpoints/class-deactivate-user-endpoint.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/controlled-admin-access/core/app/frontend/views/app.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPRuby_CAA\\Core\\App\\Backend\\Endpoints\\Abstract_Endpoint' not found in wp-content/plugins/controlled-admin-access/core/app/backend/endpoints/class-get-user-endpoint.php:8
- > PHP Notice
Undefined variable: nonce in wp-content/plugins/controlled-admin-access/core/app/frontend/views/app.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/user.php' (include_path='.:/usr/share/php') in wp-content/plugins/controlled-admin-access/core/app/backend/endpoints/class-delete-user-endpoint.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WPRuby_CAA\\Core\\App\\Backend\\Endpoints\\Abstract_Endpoint' not found in wp-content/plugins/controlled-admin-access/core/app/backend/endpoints/class-activate-user-endpoint.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/controlled-admin-access/core/app/backend/endpoints/class-delete-user-endpoint.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: access, post, access manager, user, page...
controlled-admin-access/controlled-admin-access.php Passed 13 tests
This is the main PHP file of "Controlled Admin Access" version 2.0.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
49 characters long description:
Grant a temporary limited admin access to others.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,594 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 502 | 294 | 1,459 |
PO File | 1 | 54 | 70 | 131 |
JavaScript | 1 | 0 | 11 | 3 |
CSS | 1 | 0 | 0 | 1 |
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.27 |
Average class complexity | 5.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 1 | 3.57% |
▷ Concrete classes | 27 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 135 | |
▷ Static methods | 14 | 10.37% |
▷ Public methods | 118 | 87.41% |
▷ Protected methods | 4 | 2.96% |
▷ Private methods | 13 | 9.63% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/app/frontend/views/internal-plugins-pages.png | 28.33KB | 11.53KB | ▼ 59.29% |