Benchmarks
Plugin footprint Passed 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.29MB] [CPU: ▼171.06ms] Passed 4 tests
Server-side resources used by Preloader Plus - Wordpress Loading Screen Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.41 | 36.46 ▲18.09 |
Dashboard /wp-admin | 3.34 ▲0.28 | 42.82 ▲4.15 |
Posts /wp-admin/edit.php | 3.45 ▲0.34 | 38.26 ▼6.32 |
Add New Post /wp-admin/post-new.php | 5.70 ▲0.26 | 93.36 ▼682.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.28 | 35.08 ▲0.70 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Preloader Plus - Wordpress Loading Screen Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,880 ▲284 | 16.25 ▲0.65 | 13.25 ▲4.20 | 45.84 ▼2.39 |
Dashboard /wp-admin | 2,988 ▲51 | 6.04 ▲0.05 | 136.27 ▼9.28 | 125.27 ▲13.13 |
Posts /wp-admin/edit.php | 2,751 ▲34 | 2.60 ▼0.10 | 66.24 ▼24.85 | 87.87 ▼16.14 |
Add New Post /wp-admin/post-new.php | 1,699 ▲118 | 17.64 ▼0.03 | 382.46 ▼64.71 | 109.80 ▼9.38 |
Media Library /wp-admin/upload.php | 1,774 ▼33 | 5.01 ▲0.01 | 133.05 ▼41.47 | 140.43 ▼2.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/preloader-plus/preloader-plus.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant PRELOADER_PLUS_VERSION - assumed 'PRELOADER_PLUS_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/preloader-plus/views/plugin-page.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preloader-plus/preloader-plus-pro/inc/customizer.php:353
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/preloader-plus/views/Ripple.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/preloader-plus/views/Bars.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/preloader-plus/views/DualRing.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/preloader-plus/views/Dots.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/preloader-plus/views/plugin-page.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/preloader-plus/views/Eclipse.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/preloader-plus/views/Rolling.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preloader-plus/inc/customizer.php:817
- > PHP Warning
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: page loading, page loading screen, loading screen, page loader, loading page...
preloader-plus/preloader-plus.php 92% from 13 tests
"Preloader Plus - Wordpress Loading Screen Plugin" version 2.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
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,601 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 311 | 317 | 2,117 |
CSS | 6 | 59 | 8 | 314 |
JavaScript | 5 | 35 | 9 | 170 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 28 | 75.68% |
▷ Protected methods | 4 | 10.81% |
▷ Private methods | 5 | 13.51% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/Dots.png | 2.53KB | 1.67KB | ▼ 33.87% |
assets/img/preloader-plus-logo.png | 10.14KB | 4.43KB | ▼ 56.32% |