Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼5.84ms] Passed 4 tests
An overview of server-side resources used by Elvez Control Access
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 46.84 ▲6.43 |
Dashboard /wp-admin | 3.61 ▲0.26 | 42.02 ▼19.53 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 49.36 ▲6.63 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 95.14 ▼13.04 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 36.33 ▲2.77 |
Control Access /wp-admin/admin.php?page=elvez-control-access | 3.45 | 32.55 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 10 new options
New WordPress options |
---|
elvez_control_access_is_private_woocommerce |
widget_recent-comments |
elvez_control_access_redirect_page |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
elvez_control_access_subscribe_email |
widget_recent-posts |
widget_theysaidso_widget |
elvez_control_access_subscription_id |
Browser metrics Passed 4 tests
Elvez Control Access: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 13.62 ▼0.54 | 8.64 ▲6.92 | 36.97 ▼8.91 |
Dashboard /wp-admin | 2,241 ▲70 | 4.98 ▼0.58 | 101.83 ▲13.34 | 41.44 ▲2.89 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.49 ▲0.51 | 38.52 ▼2.35 | 32.52 ▼3.82 |
Add New Post /wp-admin/post-new.php | 6,259 ▲4,722 | 26.35 ▲8.25 | 836.19 ▲212.29 | 33.76 ▼28.29 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.50 ▲0.29 | 99.33 ▼8.46 | 41.88 ▼0.72 |
Control Access /wp-admin/admin.php?page=elvez-control-access | 1,034 | 2.52 | 44.13 | 29.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 10 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- elvez_control_access_is_private_woocommerce
- elvez_control_access_redirect_page
- widget_theysaidso_widget
- elvez_control_access_subscribe_email
- widget_recent-posts
- elvez_control_access_subscription_id
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/elvez-control-access/public/partials/elvez-control-access-public-display.php
- > /wp-content/plugins/elvez-control-access/admin/partials/elvez-control-access-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (Settings)
elvez-control-access/elvez-control-access.php 85% from 13 tests
This is the main PHP file of "Elvez Control Access" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.2")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,610 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 274 | 1,177 | 1,100 |
JavaScript | 4 | 11 | 67 | 210 |
CSS | 2 | 28 | 38 | 204 |
PO File | 2 | 30 | 37 | 96 |
PHP code Passed 2 tests
An overview of 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.21 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 19 | 21.84% |
▷ Public methods | 82 | 94.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.75% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 35 | |
▷ Global constants | 1 | 2.86% |
▷ Class constants | 34 | 97.14% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin