Benchmarks
Plugin footprint 82% 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.04MB] [CPU: ▲320.59ms] 50% from 4 tests
Server-side resources used by Highcompress Image Compressor
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 891.86ms on /wp-admin/upload.php?page=highcompress-optimizer)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 320.59ms on /wp-admin/upload.php?page=highcompress-optimizer)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.22 ▼5.68 |
Dashboard /wp-admin | 3.40 ▲0.06 | 499.88 ▲433.45 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 489.92 ▲438.26 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 526.20 ▲416.88 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 473.82 ▲437.69 |
Bulk Optimizer /wp-admin/upload.php?page=highcompress-optimizer | 3.32 | 891.86 |
Server storage [IO: ▲2.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 24 new options
New WordPress options |
---|
HIGHCOMPRESS_OFFSET_OFF_1536x1536 |
HIGHCOMPRESS_FILE_TYPE |
HIGHCOMPRESS_MY |
HIGHCOMPRESS_OFFSET_OFF_full |
widget_theysaidso_widget |
HIGHCOMPRESS_OFFSET_OFF_medium |
theysaidso_admin_options |
HIGHCOMPRESS_OFFSET_OFF_thumbnail |
HIGHCOMPRESS_PERCENT |
HIGHCOMPRESS_PLAN |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Highcompress Image Compressor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.28 ▼0.10 | 1.60 ▲0.06 | 38.94 ▼2.51 |
Dashboard /wp-admin | 2,220 ▲43 | 5.64 ▼0.03 | 84.90 ▼4.01 | 41.67 ▲0.18 |
Posts /wp-admin/edit.php | 2,125 ▲22 | 2.03 ▲0.05 | 36.56 ▼3.60 | 33.87 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.33 ▼0.18 | 634.32 ▼67.16 | 58.21 ▼1.96 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.17 ▼0.01 | 99.41 ▼9.72 | 44.33 ▼4.49 |
Bulk Optimizer /wp-admin/upload.php?page=highcompress-optimizer | 1,314 | 2.24 | 52.20 | 134.24 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 23 options
- HIGHCOMPRESS_OFFSET_OFF_medium_large
- widget_theysaidso_widget
- HIGHCOMPRESS_COUNT
- widget_recent-comments
- db_upgraded
- HIGHCOMPRESS_AUTOBACKUP_RULE
- HIGHCOMPRESS_PLAN
- HIGHCOMPRESS_VERSION_TAG
- can_compress_scripts
- HIGHCOMPRESS_AUTOCOMPRESS_RULE
- ...
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)
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=highcompress-optimizer
- > Notice in wp-content/plugins/high-compress/inc/functions/optimizer-ui.php+118
Undefined variable: percent
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
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/high-compress/highcompress.php
- > /wp-content/plugins/high-compress/inc/functions/optimizer-ui.php
- > /wp-content/plugins/high-compress/inc/functions/verifyapi.php
- > /wp-content/plugins/high-compress/uninstall.php
- > /wp-content/plugins/high-compress/inc/functions/process.php
- > /wp-content/plugins/high-compress/inc/3rd-party/banners.php
- > /wp-content/plugins/high-compress/inc/functions/autocompress.php
- > /wp-content/plugins/high-compress/inc/functions/admin-ui.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #4 in high-compress/assets to your readme.txt
high-compress/highcompress.php 92% from 13 tests
The main PHP file in "Highcompress Image Compressor" ver. 6.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("high-compress.php" instead of "highcompress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin20,819 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 1,197 | 900 | 7,637 |
CSS | 8 | 943 | 148 | 6,680 |
SVG | 5 | 0 | 4 | 4,984 |
PHP | 8 | 258 | 46 | 1,483 |
HTML | 5 | 0 | 0 | 35 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
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 | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
8 PNG files occupy 0.14MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/spacer.png | 23.15KB | 3.30KB | ▼ 85.76% |
assets/img/under-header.png | 15.02KB | 1.16KB | ▼ 92.28% |
assets/img/cloud_02.png | 15.42KB | 0.75KB | ▼ 95.12% |
assets/img/cloud_01.png | 15.62KB | 1.01KB | ▼ 93.50% |
assets/img/earth.png | 21.14KB | 3.73KB | ▼ 82.37% |