Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/stylish-preloader/index.php+51
Undefined variable: key
Server metrics [RAM: ▲0.03MB] [CPU: ▼149.65ms] Passed 4 tests
Server-side resources used by Stylish Preloader
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 46.39 ▲23.80 |
Dashboard /wp-admin | 3.09 ▲0.04 | 51.04 ▲0.53 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 51.53 ▼2.70 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 92.13 ▼596.83 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 34.96 ▲0.41 |
Stylish Preloader /wp-admin/options-general.php?page=StylishPreloaderAdminMainPage | 3.00 | 31.13 |
Server storage [IO: ▲2.88MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 110 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_preloader_table |
New WordPress options |
---|
test_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for Stylish Preloader
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲205 | 16.31 ▲0.79 | 12.92 ▲3.94 | 52.09 ▼0.68 |
Dashboard /wp-admin | 2,984 ▲53 | 5.92 ▼0.07 | 145.74 ▼10.26 | 101.62 ▼10.17 |
Posts /wp-admin/edit.php | 2,750 ▲11 | 2.73 ▲0.03 | 68.46 ▼2.91 | 85.77 ▼18.29 |
Add New Post /wp-admin/post-new.php | 1,624 ▼59 | 21.48 ▲3.03 | 271.39 ▼114.82 | 114.35 ▲1.70 |
Media Library /wp-admin/upload.php | 1,818 ▲11 | 5.03 ▲0.00 | 152.69 ▲0.17 | 107.42 ▼25.63 |
Stylish Preloader /wp-admin/options-general.php?page=StylishPreloaderAdminMainPage | 1,470 | 2.10 | 62.33 | 97.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_preloader_table
- This plugin does not fully uninstall, leaving 1 option in the database
- test_db_version
Smoke tests 75% from 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 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylish-preloader/admin/admin.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3 in stylish-preloader/assets to your readme.txt
stylish-preloader/index.php 92% from 13 tests
The main PHP file in "Stylish Preloader" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stylish-preloader.php" instead of "index.php")
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
There were no executable files found in this plugin15,331 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 1 | 33 | 5,047 |
SVG | 8 | 0 | 0 | 3,473 |
Sass | 16 | 38 | 37 | 3,238 |
LESS | 16 | 38 | 49 | 3,226 |
PHP | 2 | 6 | 31 | 290 |
JavaScript | 3 | 6 | 18 | 57 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/3.png | 2.78KB | 0.42KB | ▼ 84.77% |
admin/images/8.png | 3.44KB | 0.72KB | ▼ 78.98% |
admin/images/4.png | 2.50KB | 0.46KB | ▼ 81.70% |
admin/images/2.png | 8.46KB | 2.86KB | ▼ 66.20% |
admin/images/7.png | 3.41KB | 0.70KB | ▼ 79.50% |