Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼12.02ms] Passed 4 tests
This is a short check of server-side resources used by Login Dongle
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.79 ▲1.40 |
Dashboard /wp-admin | 3.45 ▲0.11 | 46.88 ▼13.45 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 46.41 ▲2.03 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 85.57 ▼38.04 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.19 ▲3.21 |
Login Dongle /wp-admin/options-general.php?page=login_dongle_configuration | 3.34 | 29.34 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Login Dongle
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 13.95 ▼0.45 | 1.55 ▼0.30 | 38.45 ▼4.37 |
Dashboard /wp-admin | 2,199 ▲25 | 5.50 ▼0.07 | 82.08 ▼20.95 | 39.74 ▼5.26 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.03 | 35.82 ▼5.53 | 31.92 ▼9.56 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.71 ▼0.63 | 591.20 ▼93.55 | 58.74 ▼9.94 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.22 ▲0.03 | 97.29 ▼12.28 | 49.94 ▲6.05 |
Login Dongle /wp-admin/options-general.php?page=login_dongle_configuration | 805 | 2.03 | 25.50 | 25.33 |
Uninstaller [IO: ▲0.94MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the followingZombie WordPress options detected upon uninstall: 7 options
- Uninstall procedure had uncaught errors
- > Compile error in wp-content/plugins/login-dongle/LoginDongle.php+3
Cannot declare class LoginDongle, because the name is already in use
- This plugin has failed uninstalling correctly, leaving 29 files (0.94MB) in the plugin directory
- (new file) LoginDongleUpdater.php
- (new file) LoginDonglePlugin.php
- (new file) LoginDongleMail.php
- (new file) LoginDongleOption.php
- (new file) login-dongle.php
- (new file) LoginDongleXmlrpcServer.php
- (new file) LoginDongleUserAdmin.php
- (new file) Ando/Version.php
- (new file) LoginDongle.php
- (new file) LoginDongleSiteAdmin.php
- ...
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- recovery_mode_email_last_sent
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'wp_xmlrpc_server' not found in wp-content/plugins/login-dongle/LoginDongleXmlrpcServer.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/login-dongle/LoginDongle.php:10
- > PHP Warning
Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/login-dongle/uninstall.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 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
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== login-dongle ===
) - Tags: Please reduce the number of tags, currently 29 tag instead of maximum 10
- Screenshots: Screenshot #1 (Usage, case 2 - Logging in after clicking the bookmark.) image missing
login-dongle/login-dongle.php 92% from 13 tests
This is the main PHP file of "Login Dongle" version 1.5.2, 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 follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,385 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 118 | 325 | 784 |
PO File | 4 | 149 | 184 | 601 |
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.17 |
Average class complexity | 7.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 17 | 30.91% |
▷ Public methods | 37 | 67.27% |
▷ Protected methods | 18 | 32.73% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 1 | 9.09% |
▷ Class constants | 10 | 90.91% |
▷ Public constants | 10 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.84MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-7.png | 48.74KB | 15.36KB | ▼ 68.48% |
screenshot-4.png | 146.74KB | 43.30KB | ▼ 70.49% |
screenshot-5.png | 147.50KB | 42.85KB | ▼ 70.95% |
screenshot-1.png | 90.27KB | 29.16KB | ▼ 67.70% |
screenshot-8.png | 68.79KB | 24.99KB | ▼ 63.68% |