89% featured-image-sharpen-up

Code Review | Featured Image Sharpen Up

WordPress plugin Featured Image Sharpen Up scored 89% from 54 tests.

About plugin

  • Plugin page: featured-image-sh...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 5.9.2
  • First release: Dec 18, 2015
  • Latest release: Jan 7, 2016
  • Number of updates: 6
  • Update frequency: every 3.3 days
  • Top authors: mabujo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,041 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼301.57ms] Passed 4 tests

Analyzing server-side resources used by Featured Image Sharpen Up
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0856.51 ▲5.39
Dashboard /wp-admin3.42 ▲0.0133.55 ▲0.84
Posts /wp-admin/edit.php3.65 ▲0.0138.10 ▼0.00
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.25 ▼1,207.05
Media Library /wp-admin/upload.php3.30 ▲0.0122.71 ▼0.05

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options
featured_image_sharpen_up_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Featured Image Sharpen Up
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,894 ▲13916.75 ▲1.049.85 ▲3.502.13 ▼0.69
Dashboard /wp-admin2,895 ▲346.13 ▲0.00115.91 ▼17.10155.51 ▲1.64
Posts /wp-admin/edit.php2,694 ▲63.23 ▼0.0062.77 ▼2.21138.83 ▼3.49
Add New Post /wp-admin/post-new.php1,661 ▼716.86 ▼1.47406.48 ▲4.78154.08 ▼3.13
Media Library /wp-admin/upload.php1,701 ▲35.54 ▲0.03140.27 ▲5.62188.19 ▲7.64

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: 1 option
    • featured_image_sharpen_up_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: plugin, svg, lazy load, images, page speed

featured-image-sharpen-up/featured-image-sharpen-up.php 85% from 13 tests

The main PHP file in "Featured Image Sharpen Up" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 156 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.9" instead of "4.0")

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
Success! There were no dangerous files found in this plugin320 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP466225173
JavaScript391186
JSON20040
Markdown19014
LESS1006
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin