Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▼161.37ms] Passed 4 tests
An overview of server-side resources used by JPEG PNG Compressor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.14 ▲0.31 | 41.45 ▼2.39 |
Dashboard /wp-admin | 3.37 ▲0.31 | 56.92 ▼20.05 |
Posts /wp-admin/edit.php | 3.48 ▲0.37 | 68.59 ▼36.46 |
Add New Post /wp-admin/post-new.php | 5.73 ▲0.29 | 124.78 ▼573.83 |
Media Library /wp-admin/upload.php | 3.31 ▲0.31 | 38.83 ▼15.15 |
PNG Compressor /wp-admin/options-general.php?page=png-compressor | 3.29 | 39.81 |
Bulk Optimization /wp-admin/upload.php?page=pjci-bulk-optimization | 3.30 | 53.58 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by JPEG PNG Compressor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲149 | 15.96 ▲0.44 | 12.89 ▼2.69 | 68.70 ▲16.34 |
Dashboard /wp-admin | 2,986 ▲57 | 6.25 ▲0.29 | 195.92 ▼8.71 | 150.75 ▲8.67 |
Posts /wp-admin/edit.php | 2,757 ▲18 | 2.73 ▲0.01 | 92.94 ▼65.76 | 128.54 ▼33.59 |
Add New Post /wp-admin/post-new.php | 1,616 ▲35 | 18.87 ▲1.45 | 398.94 ▼154.52 | 114.64 ▼22.73 |
Media Library /wp-admin/upload.php | 1,849 ▲30 | 5.12 ▲0.11 | 154.17 ▼34.15 | 120.91 ▼10.54 |
PNG Compressor /wp-admin/options-general.php?page=png-compressor | 1,686 | 2.14 | 74.85 | 107.09 |
Bulk Optimization /wp-admin/upload.php?page=pjci-bulk-optimization | 1,317 | 2.52 | 159.26 | 125.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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
Even though no errors were found, 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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jpeg-png-compressor/admin/pjci_admin_page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jpeg-png-compressor/admin/pjci_admin_media.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 32 tag instead of maximum 10
- Screenshots: Add descriptions for screenshots #0, #0, #0, #0 in jpeg-png-compressor/assets to your readme.txt
jpeg-png-compressor/png-compressor.php 85% from 13 tests
"JPEG PNG Compressor" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("jpeg-png-compressor.php" instead of "png-compressor.php")
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
Everything looks great! No dangerous files found in this plugin5,912 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,672 |
PHP | 5 | 50 | 42 | 2,139 |
CSS | 4 | 2 | 4 | 651 |
JavaScript | 2 | 48 | 31 | 450 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 6 | |
▷ Global constants | 6 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/image/api-bg.png | 10.51KB | 6.26KB | ▼ 40.46% |