89% cc-featured-image-column

Code Review | CC-Featured-Image-Column

WordPress plugin CC-Featured-Image-Column scored89%from 54 tests.

About plugin

  • Plugin page: cc-featured-image...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 6, 2018
  • Latest release: Mar 6, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ClearcodeHQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.16ms] Passed 4 tests

An overview of server-side resources used by CC-Featured-Image-Column
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.03 ▼10.05
Dashboard /wp-admin3.32 ▲0.0250.34 ▼2.37
Posts /wp-admin/edit.php3.38 ▲0.0248.94 ▼14.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.54 ▼17.68
Media Library /wp-admin/upload.php3.25 ▲0.0237.05 ▲1.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

CC-Featured-Image-Column: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.151.70 ▼0.1041.33 ▼3.22
Dashboard /wp-admin2,198 ▲185.62 ▼0.0290.60 ▼7.5338.90 ▼6.71
Posts /wp-admin/edit.php2,118 ▲182.01 ▲0.0037.87 ▼3.8633.04 ▼4.16
Add New Post /wp-admin/post-new.php1,528 ▲223.23 ▼0.44670.32 ▲49.2658.19 ▲2.98
Media Library /wp-admin/upload.php1,391 ▼94.18 ▼0.0698.12 ▼0.8344.75 ▲2.91

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (**CC-Featured-Image-Column** - Visit the 'Posts > All Posts' or 'Pages > All Pages' or 'Custom Post Type' posts list page.) image required
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

cc-featured-image-column/plugin.php 77% from 13 tests

The main file in "CC-Featured-Image-Column" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
  • Domain Path: The domain path should be prefixed with a forward slash character ("//")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-featured-image-column.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected32 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP183421
CSS10011

PHP code Passed 2 tests

A brief analysis 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.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.54KB7.40KB▼ 60.08%
default.png0.19KB0.10KB▼ 48.72%