Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.31ms] Passed 4 tests
An overview of server-side resources used by Image Switcher
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 33.04 ▼4.36 |
Dashboard /wp-admin | 3.36 ▲0.01 | 55.85 ▼3.54 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 53.59 ▲7.34 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 99.59 ▲10.55 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.32 ▼0.67 |
Image Switcher /wp-admin/options-general.php?page=image_switcher | 3.26 | 33.26 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Image Switcher: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲214 | 14.78 ▲0.49 | 1.71 ▲0.09 | 39.70 ▼1.83 |
Dashboard /wp-admin | 2,367 ▲186 | 6.39 ▲0.83 | 120.32 ▲22.78 | 40.18 ▼2.73 |
Posts /wp-admin/edit.php | 2,292 ▲192 | 3.53 ▲1.55 | 52.87 ▲14.39 | 32.48 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.99 ▲0.49 | 665.05 ▲17.22 | 37.13 ▼13.42 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.42 ▲0.24 | 82.77 ▼20.44 | 42.68 ▼1.74 |
Image Switcher /wp-admin/options-general.php?page=image_switcher | 1,646 | 4.09 | 75.64 | 35.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/image-switcher/image-switcher.php
- > /wp-content/plugins/image-switcher/admin/admin-page.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=image_switcher
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=image_switcher
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=image_switcher
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=image_switcher
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires php: Version not formatted correctly
- Plugin Name: Please specify the plugin name on the first line (
=== image-switcher ===
)
image-switcher/image-switcher.php Passed 13 tests
The main PHP file in "Image Switcher" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
91 characters long description:
This is just simple wordpress image switcher plugin. You can switch image through hovering.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin738 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 172 | 38 | 350 |
JavaScript | 3 | 65 | 152 | 341 |
CSS | 2 | 20 | 3 | 47 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/placeholder-blue.png | 3.88KB | 2.85KB | ▼ 26.65% |
assets/img/placeholder-red.png | 3.88KB | 2.85KB | ▼ 26.65% |