Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.47ms] Passed 4 tests
This is a short check of server-side resources used by WP Image Color Palette
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.63 ▼2.79 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.16 ▲2.35 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.26 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 86.64 ▼10.51 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 39.14 ▲2.63 |
Image Color Palette /wp-admin/tools.php?page=wpip-settings | 3.31 | 34.71 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/wp-image-color-palette/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Image Color Palette
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲48 | 13.28 ▼1.14 | 4.48 ▲2.38 | 38.64 ▼8.27 |
Dashboard /wp-admin | 2,228 ▲25 | 5.85 ▲0.04 | 96.57 ▼13.73 | 39.44 ▼3.21 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.06 ▲0.03 | 39.29 ▲2.71 | 38.03 ▲1.04 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.38 ▼0.05 | 665.67 ▲0.99 | 59.41 ▲7.92 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.16 ▼0.05 | 96.78 ▼5.34 | 47.44 ▲3.39 |
Image Color Palette /wp-admin/tools.php?page=wpip-settings | 914 | 2.05 | 24.54 | 30.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-image-color-palette/admin/partials/wpip-field-select.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wpip_is_config_valid() in wp-content/plugins/wp-image-color-palette/admin/partials/wpip-admin-page-settings.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-image-color-palette/vendor/image-palette/tests/ImagePaletteTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Makro\\ImagePalette\\Validator' not found in wp-content/plugins/wp-image-color-palette/public/class-wpip-validator.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-image-color-palette/vendor/image-palette/tests/ColorMappingTest.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-image-color-palette/admin/partials/wpip-field-number.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Makro\\ImagePalette\\Exception\\Exception' not found in wp-content/plugins/wp-image-color-palette/vendor/image-palette/src/Exception/UnsupportedFileTypeException.php:11
- > PHP Fatal error
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 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
wp-image-color-palette/wpip.php 77% from 13 tests
The main PHP script in "WP Image Color Palette" version 1.4.0 is automatically included on every request by WordPress
It is important to fix the following:
- 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
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-image-color-palette.php" instead of "wpip.php")
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
Success! There were no dangerous files found in this plugin1,376 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 275 | 1,056 | 1,088 |
JSON | 2 | 0 | 0 | 183 |
Markdown | 3 | 41 | 0 | 87 |
XML | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 4.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 2 | 2.38% |
▷ Public methods | 57 | 67.86% |
▷ Protected methods | 17 | 20.24% |
▷ Private methods | 10 | 11.90% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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 |
vendor/image-palette/tests/logo11w.png | 13.69KB | 8.97KB | ▼ 34.47% |