Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼294.14ms] Passed 4 tests
A check of server-side resources used by HiWebP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 61.67 ▲8.68 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.46 ▼8.11 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 38.90 ▼0.58 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.06 | 101.72 ▼1,175.44 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 31.76 ▲7.56 |
HiWebP /wp-admin/options-general.php?page=hi-webp | 3.29 | 25.07 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by HiWebP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,770 ▲16 | 15.88 ▲0.56 | 6.85 ▼0.03 | 2.32 ▼0.45 |
Dashboard /wp-admin | 2,896 ▲36 | 6.14 ▲0.04 | 127.72 ▲2.97 | 234.99 ▲71.16 |
Posts /wp-admin/edit.php | 2,695 ▲7 | 3.22 ▼0.01 | 63.85 ▼0.57 | 224.88 ▲73.07 |
Add New Post /wp-admin/post-new.php | 1,716 ▲55 | 20.70 ▲4.39 | 459.70 ▲24.48 | 167.14 ▼44.61 |
Media Library /wp-admin/upload.php | 1,705 ▲7 | 5.55 ▲0.03 | 143.99 ▲2.89 | 194.70 ▼61.50 |
HiWebP /wp-admin/options-general.php?page=hi-webp | 1,083 | 2.41 | 98.46 | 128.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
hiwebp/hiwebp.php 92% from 13 tests
This is the main PHP file of "HiWebP" version 1.3.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:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected274 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 36 | 46 | 162 |
PO File | 1 | 25 | 26 | 86 |
CSS | 1 | 3 | 15 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.28MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 156.56KB | 52.94KB | ▼ 66.19% |
screenshot-3.png | 21.82KB | 22.12KB | 0.00% |
hiwebp.png | 22.94KB | 8.59KB | ▼ 62.55% |
screenshot-1.png | 87.29KB | 32.96KB | ▼ 62.24% |