Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.08ms] Passed 4 tests
Server-side resources used by Wp Single Login
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 42.33 ▲0.49 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.04 ▼14.68 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.01 ▼4.39 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.35 ▼25.73 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.73 ▲1.46 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Wp Single Login
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲147 | 13.51 ▼0.88 | 14.42 ▲12.74 | 46.82 ▲6.00 |
Dashboard /wp-admin | 2,193 ▲16 | 5.65 ▲0.01 | 96.59 ▲8.11 | 37.94 ▼7.27 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.95 ▼0.06 | 31.02 ▼10.70 | 34.92 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.06 ▲5.37 | 684.57 ▲14.96 | 60.47 ▲6.40 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.17 ▼0.07 | 100.41 ▼2.24 | 43.02 ▼1.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Incomplete uninstall procedure, leaving 3 files (0.00MB) in the plugin directory
- (new file) index.php
- (new file) readme.txt
- (new file) wp-single-login.php
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-single-login/wp-single-login.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: single login, login, wordpress single login, logout
wp-single-login/wp-single-login.php 92% from 13 tests
The principal PHP file in "Wp Single Login" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 279 characters long)
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
No dangerous file extensions were detected69 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 9 | 15 | 69 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin