Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.52ms] Passed 4 tests
An overview of server-side resources used by WEN Featured Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 46.15 ▲0.48 |
Dashboard /wp-admin | 3.48 ▲0.14 | 50.54 ▼12.52 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 59.11 ▲8.07 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 86.53 ▼17.03 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 39.04 ▲6.98 |
WEN Featured Image /wp-admin/options-general.php?page=wen-featured-image | 3.37 | 36.56 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WEN Featured Image
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.19 ▼1.11 | 1.79 ▼0.19 | 38.09 ▼4.51 |
Dashboard /wp-admin | 2,228 ▲25 | 4.87 ▼0.06 | 98.66 ▼22.44 | 38.60 ▼4.74 |
Posts /wp-admin/edit.php | 2,315 ▲218 | 3.56 ▲1.56 | 66.66 ▲31.93 | 69.93 ▲34.33 |
Add New Post /wp-admin/post-new.php | 1,548 ▲8 | 23.43 ▲5.16 | 673.46 ▲12.88 | 50.68 ▼3.25 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.15 ▼0.11 | 80.82 ▼28.74 | 41.86 ▼2.76 |
WEN Featured Image /wp-admin/options-general.php?page=wen-featured-image | 1,138 | 2.03 | 25.15 | 29.84 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wen-featured-image/admin/partials/wen-featured-image-admin-right-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wen-featured-image/admin/partials/wen-featured-image-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: images, admin, upload, featured image, media...
wen-featured-image/wen-featured-image.php Passed 13 tests
The primary PHP file in "WEN Featured Image" version 1.5.2 is used by WordPress to initiate all plugin functionality
109 characters long description:
Add featured image column in listings. You can easily add/change/remove featured image from the listing page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected881 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 310 | 632 | 687 |
JavaScript | 2 | 28 | 13 | 105 |
PO File | 1 | 30 | 45 | 66 |
CSS | 2 | 1 | 4 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 13.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 2 | 3.70% |
▷ Public methods | 46 | 85.19% |
▷ Protected methods | 2 | 3.70% |
▷ Private methods | 6 | 11.11% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/no-image.png | 0.28KB | 0.28KB | ▼ 0.70% |