78% category-post-list

Code Review | Create Category Post List

WordPress plugin Create Category Post List scored78%from 54 tests.

About plugin

  • Plugin page: category-post-list
  • Plugin version: 2.2
  • PHP compatiblity: 7.3.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0.0
  • WordPress version: 6.3.1
  • First release: Sep 18, 2021
  • Latest release: Jun 13, 2022
  • Number of updates: 19
  • Update frequency: every 14.3 days
  • Top authors: aresei (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /425 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.83ms] Passed 4 tests

A check of server-side resources used by Create Category Post List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.97 ▼4.11
Dashboard /wp-admin3.32 ▲0.0243.67 ▼8.96
Posts /wp-admin/edit.php3.37 ▲0.0245.02 ▼1.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.20 ▼4.89
Media Library /wp-admin/upload.php3.25 ▲0.0337.10 ▲3.87
Create Category Post List /wp-admin/options-general.php?page=category_post_list3.0727.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Create Category Post List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.69 ▼0.731.80 ▼0.0540.89 ▼2.97
Dashboard /wp-admin2,210 ▲225.89 ▲0.98107.21 ▼6.5138.75 ▼4.17
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0439.94 ▲2.0334.74 ▼3.93
Add New Post /wp-admin/post-new.php1,545 ▲1218.26 ▼5.00646.59 ▼21.9053.81 ▲3.22
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.05100.32 ▼0.1843.39 ▼3.35
Create Category Post List /wp-admin/options-general.php?page=category_post_list1,1461.9932.0056.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • CategoryPostList_Settings
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=category_post_list
    • > Warning in wp-content/plugins/category-post-list/CategoryPostList.php+298
    filemtime(): stat failed for wp-content/plugins/CategoryPostList/Scripts/toastr.min.js
    • > GET request to /wp-admin/options-general.php?page=category_post_list
    • > Warning in wp-content/plugins/category-post-list/CategoryPostList.php+304
    filemtime(): stat failed for wp-content/plugins/CategoryPostList/Scripts/MyCommonLibrary.js
    • > GET request to /wp-admin/options-general.php?page=category_post_list
    • > Warning in wp-content/plugins/category-post-list/CategoryPostList.php+308
    filemtime(): stat failed for wp-content/plugins/CategoryPostList/Scripts/Setting.js
    • > GET request to /wp-admin/options-general.php?page=category_post_list
    • > Notice in wp-content/plugins/category-post-list/CategoryPostList.php+317
    Undefined index: category
    • > GET request to /wp-admin/options-general.php?page=category_post_list
    • > Warning in wp-content/plugins/category-post-list/CategoryPostList.php+326
    filemtime(): stat failed for wp-content/plugins/CategoryPostList/Scripts/Setting.css
    • > GET request to /wp-admin/options-general.php?page=category_post_list
    • > Warning in wp-content/plugins/category-post-list/CategoryPostList.php+330
    filemtime(): stat failed for wp-content/plugins/CategoryPostList/Scripts/GoogleMaterialIcons.css
    • > GET request to /wp-admin/options-general.php?page=category_post_list
    • > Warning in wp-content/plugins/category-post-list/CategoryPostList.php+334
    filemtime(): stat failed for wp-content/plugins/CategoryPostList/Scripts/toastr.min.css

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/category-post-list/CategoryPostList.php:12

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 93% 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: post, export, create, category, list

category-post-list/CategoryPostList.php 85% from 13 tests

The main PHP script in "Create Category Post List" version 2.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("category-post-list.php" instead of "CategoryPostList.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 detected1,151 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3151104599
PHP16218318
CSS3185152
PO File1313182

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.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