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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.18ms] Passed 4 tests
Analyzing server-side resources used by WP - Custom Access Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.65 ▼0.81 | 12.07 ▼30.68 |
Dashboard /wp-admin | 3.59 ▲0.29 | 53.07 ▼0.47 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 51.28 ▲1.62 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 102.80 ▲0.83 |
Media Library /wp-admin/upload.php | 3.51 ▲0.29 | 43.96 ▲8.07 |
Custom Access /wp-admin/admin.php?page=custom_access_lite | 3.76 | 37.06 |
Add users /wp-admin/admin.php?page=ca-lite-add_users | 3.76 | 37.20 |
Set pages /wp-admin/admin.php?page=ca-lite-set_pages | 3.76 | 35.15 |
view logs /wp-admin/admin.php?page=ca-lite-log | 3.76 | 36.94 |
options /wp-admin/admin.php?page=ca-lite-options | 3.76 | 33.97 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 31 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_custom_access_lite_session |
wp_custom_access_lite_accounts |
wp_custom_access_lite_logger |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
CUSTOM_ACCESS_LITE_Logger_pages |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
WP - Custom Access Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲45 | 14.37 ▼0.31 | 1.79 ▼0.37 | 42.02 ▼3.04 |
Dashboard /wp-admin | 2,237 ▲57 | 5.78 ▲0.13 | 100.14 ▲1.91 | 44.76 ▼1.08 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 2.05 ▲0.05 | 34.76 ▼1.94 | 49.01 ▲13.81 |
Add New Post /wp-admin/post-new.php | 1,573 ▲28 | 23.10 ▼0.14 | 688.59 ▲33.73 | 52.65 ▼12.21 |
Media Library /wp-admin/upload.php | 1,442 ▲51 | 4.44 ▲0.19 | 113.30 ▲12.26 | 52.59 ▲4.70 |
Custom Access /wp-admin/admin.php?page=custom_access_lite | 1,086 | 2.28 | 29.11 | 37.69 |
Add users /wp-admin/admin.php?page=ca-lite-add_users | 1,501 | 2.38 | 40.21 | 35.83 |
Set pages /wp-admin/admin.php?page=ca-lite-set_pages | 990 | 2.28 | 26.26 | 35.83 |
view logs /wp-admin/admin.php?page=ca-lite-log | 1,175 | 2.35 | 41.04 | 36.21 |
options /wp-admin/admin.php?page=ca-lite-options | 1,109 | 2.02 | 29.24 | 33.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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
The following issues need your attention
- 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/wp-custom-access-lite/classes/seng_login_screen.php
- > /wp-content/plugins/wp-custom-access-lite/classes/seng_gebruiker.php
- > /wp-content/plugins/wp-custom-access-lite/functions/semi_functions.php
- > /wp-content/plugins/wp-custom-access-lite/functions/prime_functions.php
- > /wp-content/plugins/wp-custom-access-lite/wp-custom-access-lite.php
- > /wp-content/plugins/wp-custom-access-lite/classes/errormessage.php
- > /wp-content/plugins/wp-custom-access-lite/classes/useraccount.php
- > /wp-content/plugins/wp-custom-access-lite/classes/seng_uninstall.php
- > /wp-content/plugins/wp-custom-access-lite/classes/installation.php
- > /wp-content/plugins/wp-custom-access-lite/classes/admin_menu_logger.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% 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
6 plugin tags: lite, login, access, management, access management...
wp-custom-access-lite/wp-custom-access-lite.php 85% from 13 tests
This is the main PHP file of "WP - Custom Access Lite" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Success! There were no dangerous files found in this plugin11,762 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 20 | 14 | 6,922 |
PHP | 11 | 168 | 347 | 2,428 |
JavaScript | 7 | 623 | 250 | 2,124 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
Analyzing 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.36 |
Average class complexity | 21.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 66 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 15.38% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 46.34KB | 11.77KB | ▼ 74.60% |