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.00MB] [CPU: ▼141.95ms] Passed 4 tests
An overview of server-side resources used by ShortcodeHub Addon - Image Color Palette
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 28.03 ▲7.88 |
Dashboard /wp-admin | 3.06 ▲0.01 | 43.88 ▲0.05 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 43.76 ▲0.90 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 95.41 ▼560.03 |
Media Library /wp-admin/upload.php | 3.01 ▼0.00 | 29.54 ▼8.71 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for ShortcodeHub Addon - Image Color Palette
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.77 ▼0.12 | 7.86 ▼1.29 | 45.40 ▼1.70 |
Dashboard /wp-admin | 2,967 ▲34 | 5.85 ▼0.06 | 135.97 ▼4.93 | 117.63 ▲8.22 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.01 | 64.90 ▲1.72 | 84.90 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,672 ▼0 | 18.81 ▼0.14 | 358.35 ▼22.17 | 106.21 ▼3.32 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.03 ▲0.01 | 159.72 ▲15.06 | 111.23 ▼10.37 |
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
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcodehub-addon-image-color-palette/classes/class-sh-addon-icp-loader.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: color, image color, palette, image, color palette
shortcodehub-addon-image-color-palette/shortcodehub-addon-image-color palette.php 85% from 13 tests
This is the main PHP file of "ShortcodeHub Addon - Image Color Palette" version 1.0.0, 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: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("shortcodehub-addon-image-color-palette.php" instead of "shortcodehub-addon-image-color palette.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin354 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 52 | 57 | 177 |
PHP | 2 | 37 | 108 | 144 |
CSS | 1 | 7 | 0 | 33 |
PHP code Passed 2 tests
An overview of 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.20 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin