84% category-description-widget

Code Review | Category Description Widget

WordPress plugin Category Description Widget scored84%from 54 tests.

About plugin

  • Plugin page: category-descript...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Feb 21, 2014
  • Latest release: Nov 9, 2017
  • Number of updates: 12
  • Update frequency: every 113.1 days
  • Top authors: dominik.schwind (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,668 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Category Description Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.39 ▼12.18
Dashboard /wp-admin3.32 ▲0.0150.56 ▼4.31
Posts /wp-admin/edit.php3.37 ▲0.0145.83 ▼4.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.26 ▼6.62
Media Library /wp-admin/upload.php3.24 ▲0.0136.75 ▲0.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_category_description_widget
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Category Description Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.23 ▼0.031.77 ▼0.1541.67 ▼4.11
Dashboard /wp-admin2,192 ▲125.55 ▲0.0391.19 ▼5.8442.68 ▼0.19
Posts /wp-admin/edit.php2,097 ▼32.00 ▼0.0134.76 ▼3.5339.31 ▲1.61
Add New Post /wp-admin/post-new.php1,526 ▼023.67 ▲0.81669.41 ▼22.1956.62 ▼3.74
Media Library /wp-admin/upload.php1,400 ▲34.28 ▲0.0697.12 ▼14.5739.01 ▼9.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_category_description_widget
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/category-description-widget/category-description-widget.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: tags, taxonomy, widget, category

category-description-widget/category-description-widget.php Passed 13 tests

"Category Description Widget" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Enables a widget with the category description

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 plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin