84% category-archive-label-list-widget

Code Review | Label list for Categories and Archives

WordPress plugin Label list for Categories and Archives scored 84% from 54 tests.

About plugin

  • Plugin page: category-archive-...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Jul 12, 2015
  • Latest release: Sep 22, 2015
  • Number of updates: 26
  • Update frequency: every 2.9 days
  • Top authors: w3b_designer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,390 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼12.10ms] Passed 4 tests

This is a short check of server-side resources used by Label list for Categories and Archives
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0325.80 ▼14.95
Dashboard /wp-admin3.41 ▲0.1045.92 ▼8.42
Posts /wp-admin/edit.php3.46 ▲0.1054.63 ▲6.62
Add New Post /wp-admin/post-new.php6.01 ▲0.1283.50 ▼23.60
Media Library /wp-admin/upload.php3.33 ▲0.1034.34 ▼1.41

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_callw
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Label list for Categories and Archives
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.33 ▼1.041.78 ▲0.0640.57 ▼9.56
Dashboard /wp-admin2,227 ▲365.08 ▲0.1798.34 ▼7.2737.62 ▼4.36
Posts /wp-admin/edit.php2,115 ▲262.29 ▲0.2441.38 ▲5.1734.24 ▲2.96
Add New Post /wp-admin/post-new.php1,530 ▲1617.67 ▲0.17688.17 ▲16.9337.47 ▼39.43
Media Library /wp-admin/upload.php1,412 ▲304.38 ▲0.1697.91 ▼16.1643.71 ▼4.89

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_callw
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 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/category-archive-label-list-widget/category-archive-label-list-widget.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === category-archive-label-list-widget === )
The official readme.txt is a good inspiration

category-archive-label-list-widget/category-archive-label-list-widget.php Passed 13 tests

"Label list for Categories and Archives" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
89 characters long description:
This plugin provides a widget for categories and archives with modern labels in the list.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin715 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP19530440
PO File24444122
JavaScript134077
CSS222076

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity72.00
▷ Minimum class complexity72.00
▷ Maximum class complexity72.00
Average method complexity9.88
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions6
▷ Named functions6100.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
No PNG images were found in this plugin