Benchmarks
Plugin footprint 83% from 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.00MB] [CPU: ▼12.17ms] Passed 4 tests
A check of server-side resources used by PBC Image Compress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 50.72 ▲9.38 |
Dashboard /wp-admin | 3.31 ▼0.03 | 51.53 ▼13.32 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.44 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.56 ▼37.53 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.39 ▲5.07 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
PBC Image Compress: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.27 ▼0.29 | 2.27 ▲0.66 | 43.33 ▲0.58 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.10 | 87.49 ▼12.46 | 42.00 ▲1.86 |
Posts /wp-admin/edit.php | 2,100 ▲18 | 2.00 ▲0.02 | 36.18 ▼4.95 | 35.16 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 22.95 ▲4.66 | 676.14 ▲30.58 | 53.33 ▼15.38 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.18 ▲0.04 | 109.68 ▲8.34 | 48.78 ▲6.75 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/image-compress/public/partials/pbc-image-compress-public-display.php
- > /wp-content/plugins/image-compress/admin/partials/pbc-image-compress-admin-display.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPImageOptim\\PHPImageOptim' not found in wp-content/plugins/image-compress/includes/class-pbc-phpimageoptim.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Image_Editor_Imagick' not found in wp-content/plugins/image-compress/includes/class-wp-image-editor-imagemagik-compress.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Image_Editor_GD' not found in wp-content/plugins/image-compress/includes/class-wp-image-editor-gd-compress.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== image-compress ===
)
image-compress/pbc-image-compress.php 85% from 13 tests
The main PHP script in "PBC Image Compress" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("image-compress.php" instead of "pbc-image-compress.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; 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
There were no executable files found in this plugin663 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 232 | 639 | 562 |
JSON | 1 | 0 | 0 | 95 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 3 | 5.66% |
▷ Public methods | 46 | 86.79% |
▷ Protected methods | 2 | 3.77% |
▷ Private methods | 5 | 9.43% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected