Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.62ms] Passed 4 tests
An overview of server-side resources used by Custom Preloader in wordpress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 27.38 ▼16.56 |
Dashboard /wp-admin | 3.37 ▲0.02 | 51.77 ▼17.93 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.71 ▼1.91 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 87.67 ▼10.06 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.49 ▼0.53 |
Preloader Settings /wp-admin/options-general.php?page=preloader-settings | 3.26 | 30.05 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Preloader in wordpress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,047 ▲261 | 13.73 ▼0.62 | 17.93 ▲15.79 | 40.81 ▲0.88 |
Dashboard /wp-admin | 2,220 ▲46 | 5.74 ▲0.14 | 88.72 ▼2.05 | 39.83 ▼1.84 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.30 ▲0.30 | 36.93 ▼4.37 | 34.12 ▼6.86 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 23.23 ▲0.47 | 695.60 ▲34.68 | 36.35 ▼26.34 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.44 ▲0.23 | 100.65 ▲2.39 | 40.09 ▼1.73 |
Preloader Settings /wp-admin/options-general.php?page=preloader-settings | 1,228 | 2.31 | 43.75 | 66.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-custom-preloader/main-functions.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
- Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
my-custom-preloader/main-functions.php 92% from 13 tests
Analyzing the main PHP file in "Custom Preloader in wordpress" version 1.0
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("my-custom-preloader.php" instead of "main-functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected650 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 103 | 23 | 473 |
CSS | 3 | 35 | 6 | 165 |
JavaScript | 2 | 6 | 1 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
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 | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
28 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/img/preloader24.png | 1.68KB | 0.72KB | ▼ 57.18% |
css/img/preloader10.png | 1.78KB | 0.71KB | ▼ 60.15% |
css/img/preloader2.png | 1.71KB | 0.57KB | ▼ 66.84% |
css/img/preloader4.png | 1.52KB | 0.92KB | ▼ 39.28% |
css/img/preloader9.png | 1.50KB | 0.46KB | ▼ 69.16% |