Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼3.30ms] Passed 4 tests
An overview of server-side resources used by PassClip Auth for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 35.95 ▼7.19 |
Dashboard /wp-admin | 3.59 ▲0.29 | 47.51 ▼1.65 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 49.09 ▲4.50 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 85.74 ▼8.87 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 36.87 ▲5.58 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
passclip_auth_options |
Browser metrics Passed 4 tests
PassClip Auth for WordPress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.21 ▼1.16 | 1.65 ▼0.15 | 41.72 ▼5.48 |
Dashboard /wp-admin | 2,241 ▲56 | 5.84 ▲0.91 | 100.15 ▼17.16 | 44.01 ▲1.78 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.02 ▲0.01 | 35.10 ▼1.58 | 34.99 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,566 ▲46 | 23.30 ▲0.12 | 707.40 ▲20.07 | 46.51 ▼9.36 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.23 ▲0.02 | 96.84 ▲0.58 | 40.12 ▼1.80 |
PCA Mail Settings /wp-admin/passclip-auth.php?page=pca_mail_setting_page | 26 | 0.44 | 0.15 | 14.55 |
Manage PCA Users /wp-admin/passclip-auth.php?page=pca_manage_users | 26 | 0.44 | 0.07 | 5.86 |
PassClip Auth Options /wp-admin/passclip-auth.php?page=pca_options_page | 26 | 0.44 | 0.11 | 5.46 |
PassClip Auth /wp-admin/passclip-auth.php | 26 | 0.44 | 0.08 | 6.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/class-wp-users-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/passclip-auth-for-wordpress/class-pca-users-list-table.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/passclip-auth-for-wordpress/class-passclip-auth-login-widget.php:5
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/class-wp-users-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/passclip-auth-for-wordpress/class-pca-users-list-table.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/passclip-auth-for-wordpress/class-pca-users-list-table.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/passclip-auth.php?page=pca_mail_setting_page
- > Network (severe)
wp-admin/passclip-auth.php?page=pca_mail_setting_page - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/passclip-auth.php?page=pca_manage_users
- > Network (severe)
wp-admin/passclip-auth.php?page=pca_manage_users - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/passclip-auth.php?page=pca_options_page
- > Network (severe)
wp-admin/passclip-auth.php?page=pca_options_page - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/passclip-auth.php
- > Network (severe)
wp-admin/passclip-auth.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
passclip-auth-for-wordpress/passclip-auth.php 92% from 13 tests
"PassClip Auth for WordPress" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("passclip-auth-for-wordpress.php" instead of "passclip-auth.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,141 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 349 | 500 | 1,607 |
PO File | 2 | 184 | 212 | 388 |
JavaScript | 4 | 19 | 0 | 118 |
CSS | 3 | 7 | 0 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.94 |
▷ 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 | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 12 | 66.67% |
▷ Protected methods | 5 | 27.78% |
▷ Private methods | 1 | 5.56% |
Functions | 61 | |
▷ Named functions | 60 | 98.36% |
▷ Anonymous functions | 1 | 1.64% |
Constants | 31 | |
▷ Global constants | 31 | 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