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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.58ms] Passed 4 tests
Server-side resources used by Add Login Text
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.32 ▼3.06 |
Dashboard /wp-admin | 3.37 ▲0.06 | 48.24 ▲1.06 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.16 ▼0.75 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.15 ▼13.69 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.21 ▼0.81 |
Add Login Text /wp-admin/options-general.php?page=add-login-text | 3.26 | 31.25 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
altlt |
Browser metrics Passed 4 tests
A check of browser resources used by Add Login Text
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.12 | 1.86 ▲0.17 | 40.88 ▼2.52 |
Dashboard /wp-admin | 2,210 ▲25 | 5.85 ▲0.95 | 98.67 ▼3.53 | 36.67 ▼7.24 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.05 | 42.07 ▲2.76 | 36.10 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,545 ▲22 | 18.58 ▼4.65 | 600.66 ▼45.16 | 67.40 ▲14.30 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.30 ▲0.07 | 97.29 ▼1.38 | 44.11 ▲0.23 |
Add Login Text /wp-admin/options-general.php?page=add-login-text | 860 | 2.17 | 26.06 | 39.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 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 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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/add-login-text/add-login-text.php:20
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: text, admin, client, dev, login custom
add-login-text/add-login-text.php Passed 13 tests
"Add Login Text" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Add text to the WordPress login screen.
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 detected228 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 5 | 36 | 223 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/parameters.png | 3.48KB | 2.94KB | ▼ 15.45% |
images/settings.png | 2.11KB | 2.31KB | 0.00% |
images/login.png | 5.69KB | 3.02KB | ▼ 46.86% |
images/support.png | 5.03KB | 2.79KB | ▼ 44.54% |