89% wp-category-thumbnail

Code Review | WP Category Thumbnail

WordPress plugin WP Category Thumbnail scored 89% from 54 tests.

About plugin

  • Plugin page: wp-category-thumb...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 10, 2011
  • Latest release: Sep 16, 2019
  • Number of updates: 25
  • Update frequency: every 117.2 days
  • Top authors: nettantra (92%)pitabas106 (12%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 7,516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WP Category Thumbnail
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.91 ▼12.95
Dashboard /wp-admin3.31 ▲0.0144.56 ▼4.96
Posts /wp-admin/edit.php3.37 ▲0.0148.13 ▼1.87
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.43 ▼6.47
Media Library /wp-admin/upload.php3.24 ▲0.0139.27 ▲6.11

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_wp_category_thumbnail
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Category Thumbnail
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.24 ▼1.061.82 ▼0.1041.23 ▼15.44
Dashboard /wp-admin2,210 ▲224.88 ▼0.00109.15 ▼13.3640.32 ▼2.98
Posts /wp-admin/edit.php2,096 ▲72.04 ▼0.1541.63 ▲3.6835.13 ▲1.08
Add New Post /wp-admin/post-new.php1,537 ▼523.19 ▲4.80659.83 ▲44.9153.57 ▼0.15
Media Library /wp-admin/upload.php1,386 ▼54.26 ▲0.0699.88 ▲1.3242.03 ▼0.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_wp_category_thumbnail
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: post, overlay thumbnail, category thumbnail, thumbnail, post thumbnail...

wp-category-thumbnail/wp-category-thumbnail.php 85% from 13 tests

"WP Category Thumbnail" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: Please don't use more than 140 characters for the plugin description (currently 181 characters long)

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
There were no executable files found in this plugin326 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34148230
CSS117581
JavaScript10515

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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