84% category-checklist-tree

Code Review | Category Checklist Tree

WordPress plugin Category Checklist Tree scored84%from 54 tests.

About plugin

  • Plugin page: category-checklis...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.7
  • WordPress version: 6.3.1
  • First release: Nov 1, 2009
  • Latest release: Nov 11, 2013
  • Number of updates: 25
  • Update frequency: every 58.8 days
  • Top authors: scribu (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

7,000+ active /71,248 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼12.44ms] Passed 4 tests

Server-side resources used by Category Checklist Tree
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.40 ▲0.38
Dashboard /wp-admin3.31 ▼0.0344.84 ▼26.50
Posts /wp-admin/edit.php3.37 ▲0.0145.65 ▼6.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.19 ▼17.10
Media Library /wp-admin/upload.php3.24 ▲0.0035.04 ▲0.47

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Category Checklist Tree
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.091.73 ▼0.0847.93 ▲9.12
Dashboard /wp-admin2,206 ▲155.91 ▲1.0098.83 ▼6.2637.85 ▼3.06
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0536.53 ▲0.4232.62 ▼3.86
Add New Post /wp-admin/post-new.php1,533 ▲1923.16 ▲5.59670.51 ▼43.8556.40 ▲2.95
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.03105.31 ▲0.5546.49 ▲0.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/category-checklist-tree/category-checklist-tree.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: categories, ui, hierarchy, admin

category-checklist-tree/category-checklist-tree.php Passed 13 tests

The primary PHP file in "Category Checklist Tree" version 1.3.2 is used by WordPress to initiate all plugin functionality
59 characters long description:
Preserves the category hierarchy on the post editing screen

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 detected29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111929

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin