84% categories-sidebar

Code Review | Categories Sidebar

WordPress plugin Categories Sidebar scored84%from 54 tests.

About plugin

  • Plugin page: categories-sidebar
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.1
  • WordPress version: 6.3.1
  • First release: Nov 5, 2012
  • Latest release: Jan 24, 2015
  • Number of updates: 3
  • Update frequency: every 268.7 days
  • Top authors: pankajanupam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,718 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by Categories Sidebar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.99 ▼1.60
Dashboard /wp-admin3.31 ▲0.0148.44 ▼7.41
Posts /wp-admin/edit.php3.36 ▲0.0152.30 ▼0.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.47 ▼3.36
Media Library /wp-admin/upload.php3.24 ▲0.0237.76 ▼1.90

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

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

Browser metrics Passed 4 tests

Categories Sidebar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.001.91 ▲0.0142.89 ▼4.34
Dashboard /wp-admin2,206 ▲184.92 ▲0.02107.67 ▲0.7840.11 ▼4.40
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0139.91 ▼0.2335.28 ▼2.18
Add New Post /wp-admin/post-new.php1,537 ▲418.25 ▼4.91618.17 ▼41.6253.80 ▼2.79
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0898.53 ▼9.2041.76 ▼2.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/categories-sidebar/categories-sidebar.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 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
2 plugin tags: categories sidebar, sidebar

categories-sidebar/categories-sidebar.php Passed 13 tests

This is the main PHP file of "Categories Sidebar" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Create a diffrent sidebar to diffrent categories

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142328

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin