10% category-checkbox-list-tree

Code Review | Category Checkbox List Tree

WordPress plugin Category Checkbox List Tree scored10%from 54 tests.

About plugin

  • Plugin page: category-checkbox...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.4
  • WordPress version: 6.3.1
  • First release: Sep 23, 2015
  • Latest release: Sep 23, 2015
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: thiendo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,506 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/category-checkbox-list-tree/category-checkbox-list-tree.php+51
    Non-static method Category_Tree::init() should not be called statically

Server metrics [RAM: ▼1.94MB] [CPU: ▼52.74ms] Passed 4 tests

An overview of server-side resources used by Category Checkbox List Tree
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.424.46 ▼37.68
Dashboard /wp-admin2.07 ▼1.245.64 ▼47.69
Posts /wp-admin/edit.php2.07 ▼1.295.46 ▼42.46
Add New Post /wp-admin/post-new.php2.07 ▼3.825.64 ▼83.11
Media Library /wp-admin/upload.php2.07 ▼1.165.10 ▼30.49

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Category Checkbox List Tree: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▲0.071.75 ▼0.0644.93 ▲3.90
Dashboard /wp-admin2,195 ▲185.64 ▼0.0188.16 ▼22.2840.19 ▼6.70
Posts /wp-admin/edit.php2,103 ▼01.99 ▼0.0335.15 ▼5.3734.61 ▲1.20
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▲0.14680.71 ▲69.3061.02 ▲4.73
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0594.48 ▼10.7338.99 ▼6.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/category-checkbox-list-tree/category-checkbox-list-tree.php+51
    Non-static method Category_Tree::init() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/category-checkbox-list-tree/category-checkbox-list-tree.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === category-checkbox-list-tree === )
Please take inspiration from this readme.txt

category-checkbox-list-tree/category-checkbox-list-tree.php Passed 13 tests

The main file in "Category Checkbox List Tree" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Category checkbox list tree indents when editing a Post

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

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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 methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png79.30KB23.37KB▼ 70.53%
screenshot-1.png70.44KB19.80KB▼ 71.89%