Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.92MB] [CPU: ▼36.39ms] Passed 4 tests
An overview of server-side resources used by Loading Screen by Imoptimal
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 25.21 ▼17.25 |
Dashboard /wp-admin | 3.03 ▼0.31 | 24.26 ▼35.88 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 28.21 ▼16.84 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 26.21 ▼75.58 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 22.73 ▼10.01 |
Loading Screen by Imoptimal /wp-admin/options-general.php?page=imoload_loading | 3.03 | 24.47 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Loading Screen by Imoptimal
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲203 | 13.68 ▼1.07 | 8.52 ▲6.45 | 42.31 ▼10.40 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.96 | 106.32 ▼9.76 | 41.50 ▼3.95 |
Posts /wp-admin/edit.php | 2,072 ▼20 | 2.04 ▲0.05 | 38.74 ▲0.56 | 35.14 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 23.26 ▲0.04 | 677.90 ▲26.29 | 54.10 ▼2.16 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.30 ▲0.08 | 94.00 ▼4.69 | 43.38 ▼0.93 |
Loading Screen by Imoptimal /wp-admin/options-general.php?page=imoload_loading | 1,194 | 3.21 | 42.08 | 85.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/loading-screen-by-imoptimal/inc/register-settings.php+68
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=imoload_loading
- > Notice in wp-content/plugins/loading-screen-by-imoptimal/inc/register-settings.php+68
Trying to access array offset on value of type bool
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loading-screen-by-imoptimal/inc/enqueue-resources.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loading-screen-by-imoptimal/inc/register-settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: loading screen, loading
loading-screen-by-imoptimal/imoptimal-loading.php 77% from 13 tests
"Loading Screen by Imoptimal" version 1.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("loading-screen-by-imoptimal.php" instead of "imoptimal-loading.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,395 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 356 | 180 | 1,675 |
PHP | 6 | 101 | 44 | 426 |
CSS | 4 | 51 | 5 | 294 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/imoptimal-logo-white.png | 7.83KB | 4.28KB | ▼ 45.33% |