Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.11ms] Passed 4 tests
Analyzing server-side resources used by Custom Preloader
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 41.85 ▼0.40 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.31 ▼1.77 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.46 ▲1.51 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 92.43 ▼7.77 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.26 ▲3.05 |
WP Preloader /wp-admin/plugins.php?page=wcp_WPCustom_preloader_settings | 3.24 | 30.42 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
wpcustompreloader_screen |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Custom 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,918 ▲183 | 13.57 ▼1.05 | 6.13 ▲4.23 | 44.07 ▼6.95 |
Dashboard /wp-admin | 2,212 ▲24 | 4.85 ▼0.97 | 96.71 ▼1.20 | 41.12 ▼6.04 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 1.97 ▼0.07 | 41.42 ▲4.65 | 35.24 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.30 ▲0.11 | 597.63 ▼33.74 | 52.51 ▼0.53 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.19 ▼0.03 | 93.52 ▼1.74 | 43.31 ▲3.09 |
WP Preloader /wp-admin/plugins.php?page=wcp_WPCustom_preloader_settings | 955 | 2.07 | 24.45 | 31.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpcustom-preloader/uninstall.php
- > /wp-content/plugins/wpcustom-preloader/settings.php
- > /wp-content/plugins/wpcustom-preloader/wpcustom-preloader.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: load, loader, preloader, loading, preload
wpcustom-preloader/wpcustom-preloader.php Passed 13 tests
The main PHP script in "Custom Preloader" version 1.0 is automatically included on every request by WordPress
73 characters long description:
Add preloader to your website easily, compatible with all major browsers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected324 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 37 | 21 | 259 |
CSS | 1 | 2 | 0 | 58 |
JavaScript | 1 | 3 | 0 | 7 |
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.58 |
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 | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner/wpcustom.png | 4.26KB | 4.13KB | ▼ 2.94% |
banner/wpcustom-dark.png | 14.72KB | 13.69KB | ▼ 7.06% |