Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.45ms] Passed 4 tests
A check of server-side resources used by While Loading
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.90 ▼3.66 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.81 ▼3.83 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.30 ▲4.02 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.93 ▼14.03 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.94 ▼0.28 |
While loading /wp-admin/options-general.php?page=loading-settings | 3.26 | 32.96 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for While Loading
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲57 | 13.32 ▼0.93 | 1.78 ▼0.19 | 41.70 ▼5.72 |
Dashboard /wp-admin | 2,229 ▲41 | 5.12 ▲0.08 | 109.84 ▼5.95 | 39.27 ▼7.23 |
Posts /wp-admin/edit.php | 2,117 ▲31 | 2.31 ▲0.30 | 38.37 ▲0.34 | 36.15 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▲10 | 23.16 ▲2.18 | 682.90 ▼0.40 | 37.45 ▼12.61 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.46 ▲0.24 | 99.70 ▼0.04 | 42.07 ▼1.35 |
While loading /wp-admin/options-general.php?page=loading-settings | 1,072 | 2.37 | 42.56 | 35.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/while-it-is-loading/while-is-loading.php
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 90% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
while-it-is-loading/while-is-loading.php 85% from 13 tests
Analyzing the main PHP file in "While Loading" version 3.0
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("while-it-is-loading.php" instead of "while-is-loading.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected522 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 32 | 248 |
SVG | 1 | 0 | 1 | 92 |
PO File | 1 | 24 | 0 | 74 |
CSS | 1 | 0 | 3 | 70 |
JavaScript | 2 | 0 | 0 | 38 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin