84% categoy-thumbnail-list

Code Review | Category Thumbnail List

WordPress plugin Category Thumbnail List scored84%from 54 tests.

About plugin

  • Plugin page: categoy-thumbnail...
  • Plugin version: 2.03
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-5.7
  • WordPress version: 6.3.1
  • First release: May 16, 2010
  • Latest release: Jun 5, 2021
  • Number of updates: 64
  • Update frequency: every 63.1 days
  • Top authors: jonkastonka (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /17,565 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.01MB] [CPU: ▼7.73ms] Passed 4 tests

An overview of server-side resources used by Category Thumbnail List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0250.80 ▲6.27
Dashboard /wp-admin3.32 ▼0.0253.14 ▼12.01
Posts /wp-admin/edit.php3.37 ▲0.0249.39 ▼4.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.53 ▼19.14
Media Library /wp-admin/upload.php3.25 ▲0.0238.07 ▲4.47
Category Thumbnail List /wp-admin/options-general.php?page=category-thumbnail-list3.2134.43

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Category Thumbnail List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.05 ▼0.611.77 ▲0.1545.18 ▲4.42
Dashboard /wp-admin2,199 ▲225.50 ▼0.1082.47 ▼17.4435.26 ▼10.56
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0736.61 ▼7.8733.74 ▼2.22
Add New Post /wp-admin/post-new.php1,531 ▲323.30 ▲0.23665.85 ▼12.2255.97 ▲5.60
Media Library /wp-admin/upload.php1,407 ▲104.21 ▼0.0797.08 ▼21.3642.31 ▼4.01
Category Thumbnail List /wp-admin/options-general.php?page=category-thumbnail-list8691.9927.3723.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/categoy-thumbnail-list/categoy-thumbnail-list.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: image, categories, category, images, thumbnail...

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

The main file in "Category Thumbnail List" v. 2.03 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected154 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11612113
Sass10038
Bourne Shell1012
CSS1041

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png85.22KB31.65KB▼ 62.86%