78% categoy-thumbnail-excerpt

Code Review | Category Thumbnail Excerpt

WordPress plugin Category Thumbnail Excerpt scored78%from 54 tests.

About plugin

  • Plugin page: categoy-thumbnail...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.0
  • WordPress version: 6.3.1
  • First release: Sep 3, 2014
  • Latest release: Sep 9, 2014
  • Number of updates: 18
  • Update frequency: every 0.4 days
  • Top authors: theajit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,705 total downloads

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.00MB] [CPU: ▼4.10ms] Passed 4 tests

Server-side resources used by Category Thumbnail Excerpt
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0047.49 ▲1.06
Dashboard /wp-admin3.31 ▲0.0149.65 ▼0.02
Posts /wp-admin/edit.php3.36 ▲0.0047.20 ▼5.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.73 ▼10.09
Media Library /wp-admin/upload.php3.23 ▲0.0036.26 ▼0.48
Category Thumbnail List /wp-admin/options-general.php?page=category-thumbnail-list3.1838.36

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Category Thumbnail Excerpt: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.19 ▼0.391.86 ▲0.2242.19 ▼3.36
Dashboard /wp-admin2,199 ▲195.54 ▼0.0482.53 ▼12.5239.02 ▼1.25
Posts /wp-admin/edit.php2,101 ▲12.03 ▲0.0034.59 ▼11.0831.59 ▼5.61
Add New Post /wp-admin/post-new.php1,531 ▲523.11 ▲0.01652.20 ▼13.9452.86 ▼10.58
Media Library /wp-admin/upload.php1,407 ▲104.10 ▼0.12100.94 ▼10.7345.08 ▼6.57
Category Thumbnail List /wp-admin/options-general.php?page=category-thumbnail-list8322.0028.2425.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=category-thumbnail-list
    • > Notice in wp-content/plugins/categoy-thumbnail-excerpt/categoy-thumbnail-list.php+88
    Undefined index: save_category-thumbnail-list_settings

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/categoy-thumbnail-excerpt/categoy-thumbnail-list.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (The plugin in action.) image required
You can take inspiration from this readme.txt

categoy-thumbnail-excerpt/categoy-thumbnail-list.php 92% from 13 tests

The entry point to "Category Thumbnail Excerpt" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("categoy-thumbnail-excerpt.php" instead of "categoy-thumbnail-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin182 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1159125
CSS19557

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.24MB with 0.17MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png242.46KB64.71KB▼ 73.31%