83% widgetized-categories

Code Review | Widgetized Categories

WordPress plugin Widgetized Categories scored 83% from 54 tests.

About plugin

  • Plugin page: widgetized-catego...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 5.8.1
  • First release: May 4, 2013
  • Latest release: May 4, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: inselpark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,261 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼142.35ms] Passed 4 tests

This is a short check of server-side resources used by Widgetized Categories
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0335.34 ▼1.06
Dashboard /wp-admin3.09 ▲0.0445.10 ▲7.44
Posts /wp-admin/edit.php3.14 ▲0.0446.78 ▼0.00
Add New Post /wp-admin/post-new.php5.45 ▲0.0286.82 ▼564.35
Media Library /wp-admin/upload.php3.03 ▲0.0331.10 ▼3.97

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_widgetized_categories

Browser metrics Passed 4 tests

A check of browser resources used by Widgetized Categories
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.99 ▲0.2210.31 ▼0.6347.37 ▼4.06
Dashboard /wp-admin2,967 ▲335.94 ▼0.05133.45 ▼21.59127.48 ▲21.52
Posts /wp-admin/edit.php2,739 ▼02.83 ▲0.1266.30 ▼0.4884.05 ▼8.54
Add New Post /wp-admin/post-new.php1,604 ▼6818.56 ▼0.36345.18 ▼37.13104.64 ▼7.10
Media Library /wp-admin/upload.php1,807 ▼35.04 ▼0.10150.56 ▲5.44117.35 ▼1.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_widgetized_categories

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/widgetized-categories/widgetized_categories.php:29

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

widgetized-categories/widgetized_categories.php 85% from 13 tests

"Widgetized Categories" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 145 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("widgetized-categories.php" instead of "widgetized_categories.php")

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
Everything looks great! No dangerous files found in this plugin116 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12351116

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected