Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼328.80ms] Passed 4 tests
Server-side resources used by Advanced Access Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.47 | 59.90 ▲7.39 |
Dashboard /wp-admin | 3.90 ▲0.49 | 37.96 ▲3.55 |
Posts /wp-admin/edit.php | 4.12 ▲0.48 | 41.84 ▲5.13 |
Add New Post /wp-admin/post-new.php | 7.49 ▲0.52 | 103.46 ▼1,329.94 |
Media Library /wp-admin/upload.php | 3.77 ▲0.48 | 30.27 ▲6.08 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 4 new options
New WordPress options |
---|
aam_access_settings |
widget_aam_backend_login |
aam_addons |
aam_migrations |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Access Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,827 ▲73 | 16.11 ▲0.13 | 5.76 ▲0.03 | 2.27 ▼0.28 |
Dashboard /wp-admin | 2,953 ▲92 | 6.12 ▼0.04 | 117.76 ▼13.09 | 178.76 ▲23.20 |
Posts /wp-admin/edit.php | 2,750 ▲59 | 2.91 ▼0.32 | 62.55 ▼4.83 | 142.41 ▼12.08 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,509 | 27.49 ▲5.94 | 536.12 ▲85.33 | 354.95 ▲196.66 |
Media Library /wp-admin/upload.php | 1,757 ▲59 | 5.51 ▼0.01 | 127.80 ▼13.39 | 198.15 ▲8.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 3 options
- aam_migrations
- aam_addons
- widget_aam_backend_login
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 51× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/advanced-access-manager/application/Backend/tmpl/service/logout-redirect.php
- > /wp-content/plugins/advanced-access-manager/application/Backend/tmpl/page/current-subject.php
- > /wp-content/plugins/advanced-access-manager/application/Backend/tmpl/metabox/post-iframe.php
- > /wp-content/plugins/advanced-access-manager/application/Backend/tmpl/metabox/user-metabox.php
- > /wp-content/plugins/advanced-access-manager/application/Backend/tmpl/metabox/iframe-header.php
- > /wp-content/plugins/advanced-access-manager/application/Backend/tmpl/metabox/post-metabox.php
- > /wp-content/plugins/advanced-access-manager/application/Backend/tmpl/service/metabox.php
- > /wp-content/plugins/advanced-access-manager/application/Backend/tmpl/page/main-panel.php
- > /wp-content/plugins/advanced-access-manager/application/Backend/tmpl/widget/login-backend.php
- > /wp-content/plugins/advanced-access-manager/application/Backend/tmpl/metabox/principal-iframe.php
- 88× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Trait 'AAM_Core_Contract_RequestTrait' not found in wp-content/plugins/advanced-access-manager/application/Service/SecureLogin.php on line 25
- > PHP Fatal error
Trait 'AAM_Core_Contract_ServiceTrait' not found in wp-content/plugins/advanced-access-manager/application/Service/AccessPolicy.php on line 26
- > PHP Fatal error
Trait 'AAM_Core_Contract_SingletonTrait' not found in wp-content/plugins/advanced-access-manager/application/Core/ConfigPress.php on line 19
- > PHP Fatal error
Trait 'AAM_Core_Contract_SingletonTrait' not found in wp-content/plugins/advanced-access-manager/application/Core/AccessSettings.php on line 20
- > PHP Warning
Use of undefined constant AAM_VERSION - assumed 'AAM_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-access-manager/application/Backend/tmpl/policy/default-policy.php on line 27
- > PHP Fatal error
Trait 'AAM_Core_Contract_ServiceTrait' not found in wp-content/plugins/advanced-access-manager/application/Service/Cli.php on line 17
- > PHP Fatal error
Uncaught Error: Interface 'AAM_Core_Contract_MigrationInterface' not found in wp-content/plugins/advanced-access-manager/application/Migration/2019_06_30-base.php:42
- > PHP Fatal error
Trait 'AAM_Core_Contract_ServiceTrait' not found in wp-content/plugins/advanced-access-manager/application/Service/LoginRedirect.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'AAM_Backend_Feature_Abstract' not found in wp-content/plugins/advanced-access-manager/application/Backend/Feature/Main/Jwt.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Semver\\Constraint\\ConstraintInterface' not found in wp-content/plugins/advanced-access-manager/vendor/composer/Constraint/MultiConstraint.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
7 plugin tags: access control, jwt, backend menu, membership, security...
advanced-access-manager/aam.php 92% from 13 tests
The main PHP file in "Advanced Access Manager" ver. 6.8.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-access-manager.php" instead of "aam.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 detected23,680 lines of code in 193 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 184 | 3,498 | 12,595 | 15,391 |
JavaScript | 3 | 544 | 733 | 4,788 |
CSS | 2 | 272 | 77 | 1,974 |
PO File | 1 | 543 | 833 | 1,408 |
SVG | 3 | 64 | 2 | 119 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 15.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 4 | |
Traits | 3 | |
Classes | 120 | |
▷ Abstract classes | 4 | 3.33% |
▷ Concrete classes | 116 | 96.67% |
▷ Final classes | 6 | 5.17% |
Methods | 796 | |
▷ Static methods | 152 | 19.10% |
▷ Public methods | 513 | 64.45% |
▷ Protected methods | 238 | 29.90% |
▷ Private methods | 45 | 5.65% |
Functions | 106 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 106 | 100.00% |
Constants | 144 | |
▷ Global constants | 4 | 2.78% |
▷ Class constants | 140 | 97.22% |
▷ Public constants | 140 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin