Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.51ms] Passed 4 tests
This is a short check of server-side resources used by Ultimate Preloader
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.27 ▼0.86 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.06 ▼6.06 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.40 ▼2.70 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.24 ▼0.43 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.39 ▲1.09 |
Ultimate Preloader /wp-admin/options-general.php?page=UltimatePreloader | 3.22 | 34.83 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
up_opts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ultimate Preloader
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲221 | 13.62 ▼1.07 | 15.14 ▲13.46 | 45.32 ▲0.54 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.08 | 98.47 ▼14.80 | 40.83 ▼11.38 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.04 | 35.93 ▼4.63 | 34.82 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.16 ▲4.85 | 664.21 ▲26.50 | 53.40 ▲1.37 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.02 | 101.53 ▼2.97 | 46.10 ▲2.40 |
Ultimate Preloader /wp-admin/options-general.php?page=UltimatePreloader | 1,156 | 2.28 | 63.42 | 34.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ultimate-preloader/ultimate_preloader.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=UltimatePreloader
- > Network (severe)
wp-content/plugins/ultimate_preloader/images/empty.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Screenshot #4 (Plugin options 2) image missing
ultimate-preloader/ultimate_preloader.php 85% from 13 tests
This is the main PHP file of "Ultimate Preloader" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ultimate-preloader.php" instead of "ultimate_preloader.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 237 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected740 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 79 | 17 | 386 |
JavaScript | 3 | 55 | 3 | 343 |
CSS | 2 | 0 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
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 | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/checkbox.png | 2.95KB | 2.90KB | ▼ 1.75% |
images/icon-small.png | 1.00KB | 0.88KB | ▼ 12.26% |
images/icon.png | 2.43KB | 1.58KB | ▼ 35.06% |
images/background.png | 4.96KB | 2.59KB | ▼ 47.82% |
images/empty.png | 0.13KB | 0.09KB | ▼ 30.66% |