83% custom-options-tree

Code Review | Custom Options tree

WordPress plugin Custom Options tree scored83%from 54 tests.

About plugin

  • Plugin page: custom-options-tree
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2017
  • Latest release: Mar 30, 2023
  • Number of updates: 20
  • Update frequency: every 101.9 days
  • Top authors: vishitshah (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /5,681 total downloads

Benchmarks

Plugin footprint 83% 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.03MB] [CPU: ▼0.45ms] Passed 4 tests

This is a short check of server-side resources used by Custom Options tree
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.93 ▼1.82
Dashboard /wp-admin3.34 ▲0.0448.06 ▼2.90
Posts /wp-admin/edit.php3.46 ▲0.1150.40 ▲7.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.37 ▼4.23
Media Library /wp-admin/upload.php3.25 ▲0.0239.85 ▲8.07
Custom Option Tree /wp-admin/themes.php?page=edit-custom-option-tree3.2534.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Options tree
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17915.11 ▲0.721.66 ▼0.3943.21 ▼0.05
Dashboard /wp-admin2,342 ▲1516.52 ▲0.63131.60 ▲29.0351.16 ▲12.50
Posts /wp-admin/edit.php2,258 ▲1693.53 ▲1.4768.49 ▲26.4835.41 ▼3.27
Add New Post /wp-admin/post-new.php1,517 ▼2523.03 ▲4.95645.86 ▲13.0560.21 ▲0.43
Media Library /wp-admin/upload.php1,398 ▲74.26 ▲0.1093.19 ▼6.7143.13 ▲0.96
Custom Option Tree /wp-admin/themes.php?page=edit-custom-option-tree1,2803.1946.1134.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/custom-options-tree/custom-option-tree.php

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 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

custom-options-tree/custom-option-tree.php 77% from 13 tests

The main PHP script in "Custom Options tree" version 1.3.1 is automatically included on every request by WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 208 characters long)
  • 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: The principal plugin file should be the same as the plugin slug ("custom-options-tree.php" instead of "custom-option-tree.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected444 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP170134388
JavaScript15039
CSS10017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions42
▷ Named functions42100.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
There were not PNG files found in your plugin