Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼140.37ms] Passed 4 tests
This is a short check of server-side resources used by Preloader by WordPress Monsters
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 39.51 ▲15.82 |
Dashboard /wp-admin | 3.14 ▲0.09 | 34.50 ▼14.22 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 47.98 ▲2.12 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 97.31 ▼553.65 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 38.31 ▲4.27 |
Preloader /wp-admin/options-general.php?page=sws-preloader-options | 3.06 | 31.06 |
Server storage [IO: ▲27.10MB] [DB: ▲0.62MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- Try to limit filesystem usage to 25MB (currently using 27.10MB)
Filesystem: 135 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Preloader by WordPress Monsters
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,842 ▲247 | 16.66 ▲1.23 | 15.17 ▲6.05 | 50.89 ▲2.76 |
Dashboard /wp-admin | 3,001 ▲70 | 7.20 ▲1.26 | 171.97 ▲31.72 | 115.01 ▲2.24 |
Posts /wp-admin/edit.php | 2,770 ▲31 | 2.70 ▲0.01 | 79.27 ▲13.49 | 109.89 ▲15.63 |
Add New Post /wp-admin/post-new.php | 1,702 ▲87 | 19.13 ▼2.86 | 380.51 ▲78.58 | 137.07 ▲25.34 |
Media Library /wp-admin/upload.php | 1,839 ▲32 | 5.53 ▲0.53 | 128.89 ▼26.94 | 126.41 ▼3.27 |
Preloader /wp-admin/options-general.php?page=sws-preloader-options | 1,708 | 2.85 | 68.98 | 99.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.62MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 91 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sws-preloader-options
- > Notice in wp-content/plugins/preloader-sws/includes/sws-preloader-settings.php+90
Trying to access array offset on value of type bool
SRP 50% 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
Almost there! Just fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/preloader-sws/preloader-by-sws.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/preloader-sws/includes/view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function sws_set_selected() in wp-content/plugins/preloader-sws/includes/preloaders/light.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function sws_set_selected() in wp-content/plugins/preloader-sws/includes/preloaders/dark.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preloader-sws/includes/sws-preloader-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/preloader-sws/uninstall.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preloader-sws/includes/admin_assets.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function sws_set_selected() in wp-content/plugins/preloader-sws/includes/preloaders/juicy.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function sws_set_selected() in wp-content/plugins/preloader-sws/includes/preloaders/no-bg.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preloader-sws/includes/frontend-assets.php:14
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (List of preloaders - "With background".), #2 (List of preloaders - "Without background".), #3 (You can upload your own preloader.)
preloader-sws/preloader-by-sws.php 85% from 13 tests
"Preloader by WordPress Monsters" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("preloader-sws.php" instead of "preloader-by-sws.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected875 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 114 | 40 | 636 |
CSS | 3 | 39 | 3 | 162 |
JavaScript | 3 | 11 | 14 | 77 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin