Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.67ms] Passed 4 tests
A check of server-side resources used by Easy Thumbnail Switcher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.07 | 37.99 ▼3.67 |
Dashboard /wp-admin | 3.40 ▲0.02 | 50.06 ▼12.59 |
Posts /wp-admin/edit.php | 3.53 ▲0.15 | 50.63 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.06 | 82.50 ▼21.94 |
Media Library /wp-admin/upload.php | 3.32 ▲0.06 | 34.74 ▼0.47 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Thumbnail Switcher
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.20 ▼1.17 | 1.54 ▼0.22 | 40.71 ▼2.32 |
Dashboard /wp-admin | 2,234 ▲46 | 4.86 ▲0.01 | 96.94 ▼21.05 | 42.48 ▼3.96 |
Posts /wp-admin/edit.php | 2,323 ▲234 | 3.89 ▲1.85 | 99.48 ▲65.36 | 31.99 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.31 ▼0.01 | 654.65 ▼32.17 | 49.71 ▼10.85 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.13 ▼0.10 | 81.03 ▼17.81 | 41.19 ▼0.21 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
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)
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-thumbnail-switcher/easy-thumbnail-switcher.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: thumbnail, image, post, admin, images...
easy-thumbnail-switcher/easy-thumbnail-switcher.php Passed 13 tests
Analyzing the main PHP file in "Easy Thumbnail Switcher" version 1.0.2
123 characters long description:
Adds a new column in all posts screen, from where you will be able to set or change or remove featured image of every post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin294 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 87 | 64 | 213 |
JavaScript | 1 | 20 | 0 | 67 |
CSS | 1 | 5 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin