Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼141.91ms] Passed 4 tests
Analyzing server-side resources used by Post and Page Protect with Azure AD
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 36.41 ▲1.10 |
Dashboard /wp-admin | 3.06 ▲0.01 | 46.93 ▲0.05 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 43.91 ▼0.18 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 87.16 ▼564.30 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 28.94 ▼3.22 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Post and Page Protect with Azure AD: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.90 ▲0.37 | 9.44 ▼0.90 | 46.28 ▼4.23 |
Dashboard /wp-admin | 2,964 ▲30 | 5.95 ▼0.01 | 145.70 ▼10.67 | 115.07 ▼4.74 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 74.68 ▲4.09 | 84.25 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,782 ▼90 | 17.98 ▼1.14 | 372.54 ▼64.40 | 112.77 ▲4.03 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.03 | 148.76 ▼9.15 | 121.30 ▲1.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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 fix the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/post-and-page-protect-azure/vendors/wp-session-manager/includes/wp-cli.php:9
- > PHP Fatal error
Uncaught Error: Class 'Recursive_ArrayAccess' not found in wp-content/plugins/post-and-page-protect-azure/vendors/wp-session-manager/includes/class-wp-session.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-and-page-protect-azure/vendors/wp-session-manager/includes/wp-session.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-and-page-protect-azure/vendors/wp-session-manager/includes/wp-session.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-and-page-protect-azure/post-and-page-protect-azure.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: azure oauth, oauth, azure ad
post-and-page-protect-azure/post-and-page-protect-azure.php Passed 13 tests
Analyzing the main PHP file in "Post and Page Protect with Azure AD" version 1.2.0
83 characters long description:
Add protection to individual posts and pages using Azure Active Directory OAuth 2.0
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin625 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 180 | 577 | 606 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
A short review 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.32 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 41 | |
▷ Static methods | 13 | 31.71% |
▷ Public methods | 34 | 82.93% |
▷ Protected methods | 6 | 14.63% |
▷ Private methods | 1 | 2.44% |
Functions | 16 | |
▷ Named functions | 16 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin