74% category-and-tag-feeds

Code Review | Category- and Tag-Feeds

WordPress plugin Category- and Tag-Feeds scored74%from 54 tests.

About plugin

  • Plugin page: category-and-tag-...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 1, 2022
  • Latest release: Nov 26, 2023
  • Number of updates: 8
  • Update frequency: every 60.6 days
  • Top authors: laolaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /862 total downloads

Benchmarks

Plugin footprint 65% 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: ▼2.55ms] Passed 4 tests

A check of server-side resources used by Category- and Tag-Feeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0633.00 ▼9.54
Dashboard /wp-admin3.39 ▲0.0947.42 ▼7.11
Posts /wp-admin/edit.php3.51 ▲0.1550.33 ▲5.42
Add New Post /wp-admin/post-new.php5.98 ▲0.1096.62 ▲5.43
Media Library /wp-admin/upload.php3.32 ▲0.0934.12 ▲1.05

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Category- and Tag-Feeds
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.30 ▼0.411.48 ▼0.3837.02 ▼6.59
Dashboard /wp-admin2,202 ▲255.62 ▲0.0295.32 ▼7.6541.39 ▼4.30
Posts /wp-admin/edit.php2,107 ▲42.03 ▲0.0739.65 ▼1.4736.72 ▼0.18
Add New Post /wp-admin/post-new.php6,372 ▲4,84627.53 ▲4.05911.19 ▲259.8739.85 ▼22.35
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.0296.34 ▼1.7340.78 ▼6.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/category-and-tag-feeds/uninstall.php+19
    Constant LW_CF_CAT_META already defined
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/category-and-tag-feeds/classes/class-category-widget.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/category-and-tag-feeds/classes/class-tag-widget.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-and-tag-feeds/inc/admin.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/category-and-tag-feeds/classes/class-tagWidget.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/category-and-tag-feeds/classes/class-categoryWidget.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/category-and-tag-feeds/category-and-tag-feeds.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/category-and-tag-feeds/classes/class-widget-categories.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/category-and-tag-feeds/classes/class-widget-tags.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: feed, category, tag, category feed, tag feed

category-and-tag-feeds/category-and-tag-feeds.php 92% from 13 tests

The entry point to "Category- and Tag-Feeds" version 1.1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.9.3" instead of "6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin906 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP13126539685
JavaScript828151166
JSON20034
Sass22011
CSS35010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity3.14
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces2
Interfaces0
Traits1
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods40
▷ Static methods12.50%
▷ Public methods2972.50%
▷ Protected methods820.00%
▷ Private methods37.50%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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