Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.03MB] [CPU: ▼144.13ms] Passed 4 tests
Server-side resources used by Access Pages by Role for Admin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 35.37 ▲1.88 |
Dashboard /wp-admin | 3.19 ▲0.13 | 51.68 ▲11.15 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 46.55 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.01 ▼0.43 | 73.48 ▼580.53 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 34.68 ▲3.12 |
Access Pages Control /wp-admin/options-general.php?page=access-pages-by-role-settings | 3.04 | 31.31 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 2 new options
New WordPress options |
---|
access_pages_by_role_help |
access_pages_by_role_general |
Browser metrics Passed 4 tests
A check of browser resources used by Access Pages by Role for Admin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,926 ▲330 | 17.58 ▲2.01 | 7.96 ▼0.28 | 48.32 ▼4.28 |
Dashboard /wp-admin | 3,187 ▲253 | 8.24 ▲2.30 | 151.37 ▲9.50 | 128.91 ▲17.44 |
Posts /wp-admin/edit.php | 3,003 ▲264 | 4.35 ▲1.66 | 79.37 ▲15.81 | 91.86 ▲4.77 |
Add New Post /wp-admin/post-new.php | 3,710 ▲1,838 | 15.06 ▼4.15 | 416.98 ▲46.32 | 119.04 ▲8.22 |
Media Library /wp-admin/upload.php | 1,840 ▲36 | 4.89 ▼0.15 | 129.16 ▼10.13 | 116.89 ▲0.95 |
Access Pages Control /wp-admin/options-general.php?page=access-pages-by-role-settings | 1,462 | 4.10 | 81.28 | 83.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- access_pages_by_role_help
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/access-pages-by-role-for-admin/includes/apbrfa-functions.php:20
- > PHP Fatal error
Uncaught Error: Class 'APBRFA_Settings_API' not found in wp-content/plugins/access-pages-by-role-for-admin/includes/apbrfa-settings.php:15
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #2 in access-pages-by-role-for-admin/assets to your readme.txt
access-pages-by-role-for-admin/access-pages-by-role-for-admin.php Passed 13 tests
The entry point to "Access Pages by Role for Admin" version 1.0 is a PHP file that has certain tags in its header comment area
64 characters long description:
Allows an administrator to control access to pages by user role.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected872 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 257 | 216 | 769 |
PO File | 1 | 29 | 30 | 103 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 28.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 1 | 2.50% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin