78% category-featured-images-extended

Code Review | Category Featured Images Extended

WordPress plugin Category Featured Images Extended scored78%from 54 tests.

About plugin

  • Plugin page: category-featured...
  • Plugin version: 1.52
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2016
  • Latest release: Sep 7, 2017
  • Number of updates: 34
  • Update frequency: every 10.4 days
  • Top authors: CK MacLeod (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /8,448 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼9.11ms] Passed 4 tests

Server-side resources used by Category Featured Images Extended
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.45 ▼12.75
Dashboard /wp-admin3.43 ▲0.0955.52 ▼12.39
Posts /wp-admin/edit.php3.55 ▲0.2055.23 ▲1.15
Add New Post /wp-admin/post-new.php6.02 ▲0.1393.60 ▼9.99
Media Library /wp-admin/upload.php3.34 ▲0.1137.30 ▼1.29
Category Featured Images Extended /wp-admin/options-general.php?page=cks_cfix3.4938.62

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
cks_cfix_use_yoast_primary
widget_recent-posts
db_upgraded
can_compress_scripts
cks_cfix_version
cks_cfix_featured_images
widget_recent-comments
cks_cfix_exclude_category
...

Browser metrics Passed 4 tests

An overview of browser requirements for Category Featured Images Extended
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲22214.88 ▲0.651.86 ▲0.0243.25 ▲0.72
Dashboard /wp-admin2,352 ▲1616.39 ▲0.49123.81 ▲16.3041.96 ▼2.39
Posts /wp-admin/edit.php2,258 ▲1693.32 ▲1.2848.94 ▲10.9230.09 ▼2.80
Add New Post /wp-admin/post-new.php1,540 ▲723.47 ▲0.07648.04 ▼46.1036.03 ▼20.00
Media Library /wp-admin/upload.php1,392 ▲14.23 ▲0.0386.30 ▼28.0545.58 ▼5.73
Category Featured Images Extended /wp-admin/options-general.php?page=cks_cfix1,3422.9243.78113.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/category-featured-images-extended/settings.php
    • > /wp-content/plugins/category-featured-images-extended/category-featured-images-extended.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=cks_cfix
    • > Javascript (severe) in unknown
    /wp-content/plugins/category-featured-images-extended/js/cfix-select-cat-image.js?ver=1.52 11:32 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: ck macleod, category featured image, thumbnail, categories, featured image

category-featured-images-extended/category-featured-images-extended.php 92% from 13 tests

Analyzing the main PHP file in "Category Featured Images Extended" version 1.52
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,465 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25451541,082
CSS11115330
JavaScript2232153

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 code0.47
Average class complexity103.00
▷ Minimum class complexity103.00
▷ Maximum class complexity103.00
Average method complexity6.67
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods527.78%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin