Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼12.46ms] Passed 4 tests
Server-side resources used by Only Admin Access
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.06 | 37.89 ▼7.55 |
Dashboard /wp-admin | 3.41 ▲0.03 | 47.19 ▼15.95 |
Posts /wp-admin/edit.php | 3.52 ▲0.13 | 47.39 ▼4.19 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.09 | 83.45 ▼22.13 |
Media Library /wp-admin/upload.php | 3.33 ▲0.07 | 35.96 ▼3.17 |
Only Admin Access /wp-admin/options-general.php?page=only_admin_access_settings | 3.31 | 31.12 |
Server storage [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: no files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
only_admin_access_enable |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
only_admin_access_homepage |
widget_recent-comments |
theysaidso_admin_options |
only_admin_access_send404s |
Browser metrics Passed 4 tests
Checking browser requirements for Only Admin Access
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲62 | 13.66 ▼0.72 | 1.83 ▼0.19 | 38.52 ▼9.23 |
Dashboard /wp-admin | 2,211 ▲29 | 4.86 ▼0.97 | 111.99 ▲6.15 | 44.06 ▼2.10 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.02 ▲0.00 | 35.45 ▼2.64 | 33.96 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,529 ▲10 | 23.31 ▲0.25 | 665.40 ▼19.36 | 53.94 ▼5.49 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.19 ▲0.01 | 94.71 ▼14.83 | 40.21 ▼5.78 |
Only Admin Access /wp-admin/options-general.php?page=only_admin_access_settings | 842 | 2.03 | 27.59 | 29.43 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- only_admin_access_homepage
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- only_admin_access_enable
- theysaidso_admin_options
- only_admin_access_send404s
- db_upgraded
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)
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/only-admin-access/admin/partials/only_admin_access-display-options.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=only_admin_access_settings
- > Network (severe)
wp-content/plugins/only-admin-access/admin/css/only_admin_access-admin.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=only_admin_access_settings
- > Network (severe)
wp-content/plugins/only-admin-access/admin/js/only_admin_access-admin.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: homepage, redirects, admins
only-admin-access/only_admin_access.php 85% from 13 tests
The main file in "Only Admin Access" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("only-admin-access.php" instead of "only_admin_access.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected258 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 126 | 426 | 258 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 25 | 86.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.79% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin