77% real-category-library-lite

Code Review | Real Category Management: Content Management in Category Folders

WordPress plugin Real Category Management: Content Management in Category Folders scored77%from 54 tests.

About plugin

  • Plugin page: real-category-lib...
  • Plugin version: 4.1.79
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Oct 4, 2019
  • Latest release: Nov 28, 2023
  • Number of updates: 141
  • Update frequency: every 10.8 days
  • Top authors: devowl (98.58%)mguenter (2.13%)

Code review

54 tests

User reviews

16 reviews

Install metrics

3,000+ active /99,450 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲2.46MB] [CPU: ▲17.39ms] 75% from 4 tests

An overview of server-side resources used by Real Category Management: Content Management in Category Folders
It is recommended to improve the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 696.50ms on /wp-admin/admin.php?page=real-category-library-lite-welcome)
PageMemory (MB)CPU Time (ms)
Home /5.84 ▲2.3754.61 ▲15.94
Dashboard /wp-admin5.79 ▲2.4872.24 ▲23.69
Posts /wp-admin/edit.php5.89 ▲2.5368.86 ▲20.45
Add New Post /wp-admin/post-new.php8.46 ▲2.56103.31 ▲9.48
Media Library /wp-admin/upload.php5.72 ▲2.4864.38 ▲28.80
Real Category Management (Free) /wp-admin/admin.php?page=real-category-library-lite-welcome5.98696.50
Category Management /wp-admin/options-general.php?page=real-category-library-lite-component5.6754.54

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 244 new files
Database: no new tables, 15 new options
New WordPress options
rcl_db_migration
category_children
widget_recent-posts
rcl_liteDismissed-expire
rpm-wpc-licenseDeferredLicenseActivation_real-category-library-lite-expire
theysaidso_admin_options
widget_recent-comments
rcl_db_version
rpm-wpc-puFirst_real-category-library-lite
rpm-wpc-licenseDeferredLicenseActivation_real-category-library-lite
...

Browser metrics Passed 4 tests

Checking browser requirements for Real Category Management: Content Management in Category Folders
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲12518.57 ▲4.382.21 ▲0.7336.64 ▼4.20
Dashboard /wp-admin2,286 ▲1099.28 ▲3.62211.02 ▲115.1443.47 ▼2.64
Posts /wp-admin/edit.php2,702 ▲6027.40 ▲5.42199.71 ▲162.7078.46 ▲44.31
Add New Post /wp-admin/post-new.php1,610 ▲8422.54 ▼0.57751.45 ▲149.4346.34 ▼1.21
Media Library /wp-admin/upload.php1,550 ▲1477.19 ▲3.07188.31 ▲92.3141.95 ▼1.54
Real Category Management (Free) /wp-admin/admin.php?page=real-category-library-lite-welcome1,6415.36141.48107.55
Category Management /wp-admin/options-general.php?page=real-category-library-lite-component1,1305.22118.0234.72

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 15 options
    • rcl_db_version
    • rpm-wpc-puFirst_real-category-library-lite
    • widget_theysaidso_widget
    • db_upgraded
    • rcl_liteDismissed
    • theysaidso_admin_options
    • category_children
    • rpm-wpc-licenseDeferredLicenseActivation_real-category-library-lite-expire
    • can_compress_scripts
    • widget_recent-comments
    • ...

Smoke tests 50% 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 0% 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
Please fix the following items
  • 105× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/real-category-library-lite/inc/TaxTree.php
    • > /wp-content/plugins/real-category-library-lite/inc/base/Core.php
    • > /wp-content/plugins/real-category-library-lite/vendor/devowl-wp/utils/src/KeyValueMapOption.php
    • > /wp-content/plugins/real-category-library-lite/inc/Localization.php
    • > /wp-content/plugins/real-category-library-lite/inc/overrides/lite/view/WooCommerce.php
    • > /wp-content/plugins/real-category-library-lite/vendor/devowl-wp/utils/src/Base.php
    • > /wp-content/plugins/real-category-library-lite/vendor/devowl-wp/real-utils/src/AbstractInitiator.php
    • > /wp-content/plugins/real-category-library-lite/vendor/devowl-wp/real-product-manager-wp-client/src/AbstractInitiator.php
    • > /wp-content/plugins/real-category-library-lite/vendor/devowl-wp/real-utils/src/Assets.php
    • > /wp-content/plugins/real-category-library-lite/inc/overrides/interfce/IOverrideCore.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function PHPSTORM_META\\expectedArguments() in wp-content/plugins/real-category-library-lite/vendor/colinodell/json5/.phpstorm.meta.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-category-library-lite/inc/base/others/development-env.php:43
    • > PHP Fatal error
      Uncaught Error: Class 'DevOwl\\RealCategoryLibrary\\Vendor\\MatthiasWeb\\WpdbBatch\\AbstractBatch' not found in wp-content/plugins/real-category-library-lite/vendor/matthiasweb/wpdb-batch/src/Update.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 19 tag instead of maximum 10
  • Screenshots: Screenshot #4 (All custom post types supported) image required
You can look at the official readme.txt

real-category-library-lite/index.php 85% from 13 tests

The main file in "Real Category Management: Content Management in Category Folders" v. 4.1.79 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("real-category-library-lite.php" instead of "index.php")

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
No dangerous file extensions were detected20,345 lines of code in 184 files:
LanguageFilesBlank linesComment linesLines of code
PHP1373627,38110,501
Markdown103,59307,147
JSON8002,141
SVG26033322
Sass1430187
CSS91026
JavaScript1724021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.20
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces27
Interfaces4
Traits18
Classes90
▷ Abstract classes910.00%
▷ Concrete classes8190.00%
▷ Final classes33.70%
Methods921
▷ Static methods10811.73%
▷ Public methods80086.86%
▷ Protected methods667.17%
▷ Private methods555.97%
Functions77
▷ Named functions911.69%
▷ Anonymous functions6888.31%
Constants173
▷ Global constants3821.97%
▷ Class constants13578.03%
▷ Public constants135100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin