Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼149.60ms] Passed 4 tests
Server-side resources used by Visitor Login Notice
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 28.70 ▼4.79 |
Dashboard /wp-admin | 3.15 ▲0.08 | 39.33 ▼2.22 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 37.16 ▼6.37 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 75.43 ▼585.00 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 27.25 ▲0.89 |
Visitor Login Notice /wp-admin/options-general.php?page=vln_plugin_opts | 3.07 | 21.94 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Visitor Login Notice
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲196 | 15.94 ▲0.26 | 10.59 ▲2.26 | 75.78 ▼2.53 |
Dashboard /wp-admin | 2,938 ▲39 | 6.13 ▼0.00 | 114.21 ▼15.97 | 167.64 ▼4.71 |
Posts /wp-admin/edit.php | 2,745 ▲5 | 3.24 ▲0.01 | 64.20 ▲2.32 | 141.39 ▲10.79 |
Add New Post /wp-admin/post-new.php | 3,810 ▲75 | 18.33 ▼0.38 | 459.72 ▼3.18 | 164.35 ▼9.30 |
Media Library /wp-admin/upload.php | 1,754 ▲2 | 5.53 ▲0.02 | 162.26 ▲21.40 | 195.25 ▲10.93 |
Visitor Login Notice /wp-admin/options-general.php?page=vln_plugin_opts | 2,001 | 3.83 | 84.19 | 106.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
3 plugin tags: login reminder, login notice, login
visitor-login-notice/visitor-login-notice.php 85% from 13 tests
Analyzing the main PHP file in "Visitor Login Notice" version 1.0.0
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin636 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 139 | 204 | 485 |
CSS | 2 | 13 | 3 | 81 |
Markdown | 1 | 15 | 0 | 36 |
JavaScript | 3 | 13 | 27 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 29 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 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 were not PNG files found in your plugin