Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.43ms] Passed 4 tests
Server-side resources used by Flat Preloader
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 43.92 ▲6.38 |
Dashboard /wp-admin | 3.38 ▲0.08 | 53.48 ▲3.52 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 47.58 ▼7.39 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 80.44 ▼14.18 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 36.14 ▲0.33 |
Flat Preloader /wp-admin/options-general.php?page=flat-preloader | 3.27 | 35.84 |
Server storage [IO: ▲3.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 131 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Flat Preloader
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲120 | 13.81 ▼0.44 | 8.97 ▲7.13 | 40.85 ▼0.83 |
Dashboard /wp-admin | 2,201 ▲21 | 5.54 ▼0.13 | 84.17 ▼9.29 | 42.82 ▲3.67 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.02 ▲0.01 | 34.22 ▼7.22 | 29.23 ▼9.18 |
Add New Post /wp-admin/post-new.php | 1,531 ▼7 | 23.03 ▲4.96 | 694.23 ▲106.05 | 59.08 ▼18.47 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.26 ▲0.04 | 94.44 ▼4.24 | 41.88 ▼0.15 |
Flat Preloader /wp-admin/options-general.php?page=flat-preloader | 2,628 | 1.68 | 25.20 | 217.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== flat-preloader ===
)
flat-preloader/flat-preloader.php Passed 13 tests
"Flat Preloader" version 1.16.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
47 characters long description:
Create preloading page with many various styles
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
Everything looks great! No dangerous files found in this plugin492 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 51 | 167 | 309 |
CSS | 2 | 36 | 0 | 127 |
JavaScript | 1 | 10 | 2 | 51 |
make | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/how-to-get-post-id.png | 27.23KB | 9.16KB | ▼ 66.38% |
admin/img/wp-block-mindmap-200.png | 16.02KB | 5.78KB | ▼ 63.92% |