Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.37ms] Passed 4 tests
This is a short check of server-side resources used by WP Preloader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.24 ▼4.03 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.84 ▼4.40 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.51 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 99.00 ▲11.07 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 32.85 ▼0.73 |
WP Preloader /wp-admin/options-general.php?page=wppreloader_options | 3.22 | 31.17 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Preloader: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲149 | 13.88 ▼0.77 | 5.44 ▲3.71 | 39.23 ▼2.39 |
Dashboard /wp-admin | 2,229 ▲38 | 5.05 ▼0.85 | 110.63 ▲1.12 | 44.58 ▼2.56 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.28 ▲0.31 | 41.52 ▲1.25 | 34.47 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 18.22 ▼4.96 | 591.04 ▼80.72 | 34.35 ▼15.95 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.38 ▲0.14 | 98.78 ▼0.81 | 41.12 ▼3.00 |
WP Preloader /wp-admin/options-general.php?page=wppreloader_options | 967 | 2.36 | 38.10 | 27.52 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wppreloader_options
- > Notice in wp-content/plugins/wp-preloader/includes/settings.php+27
Trying to access array offset on value of type bool
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 output text when accessed directly:
- > /wp-content/plugins/wp-preloader/wp-preloader.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-preloader/includes/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-preloader/includes/content.php:3
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Donate link: Invalid URI found ("")
wp-preloader/wp-preloader.php Passed 13 tests
The main PHP script in "WP Preloader" version 1.0 is automatically included on every request by WordPress
86 characters long description:
WP Preloader is a simple and customizable wordpress preloader plugin.Very easy to use.
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
Success! There were no dangerous files found in this plugin170 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 43 | 55 | 140 |
CSS | 1 | 3 | 8 | 21 |
JavaScript | 2 | 5 | 4 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot-1.png | 29.56KB | 0.00KB | ▼ 100.00% |
(invalid) screenshot-3.png | 12.08KB | 0.00KB | ▼ 100.00% |
(invalid) screenshot-2.png | 76.22KB | 0.00KB | ▼ 100.00% |