83% customizer-options-tree

Code Review | Customizer Options Tree

WordPress plugin Customizer Options Tree scored83%from 54 tests.

About plugin

  • Plugin page: customizer-option...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2021
  • Latest release: May 29, 2023
  • Number of updates: 8
  • Update frequency: every 85.5 days
  • Top authors: madmak787 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Customizer Options Tree
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.57 ▼4.04
Dashboard /wp-admin3.33 ▲0.0242.75 ▼7.57
Posts /wp-admin/edit.php3.44 ▲0.0846.97 ▼0.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.50 ▼21.62
Media Library /wp-admin/upload.php3.25 ▲0.0233.60 ▲4.40

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
mmc_fields
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Customizer Options Tree
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.44 ▲0.141.68 ▲0.0441.09 ▼3.69
Dashboard /wp-admin2,215 ▲274.91 ▼0.98117.17 ▲10.1943.13 ▼3.25
Posts /wp-admin/edit.php2,104 ▲152.03 ▲0.0239.81 ▼1.8435.19 ▲0.94
Add New Post /wp-admin/post-new.php1,548 ▲2022.92 ▲4.60660.66 ▲52.8865.21 ▼8.63
Media Library /wp-admin/upload.php1,394 ▲154.22 ▲0.0299.35 ▼5.5744.53 ▼0.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • mmc_fields
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/customizer-options-tree/templates/admin/ajax/default/control.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/customizer-options-tree/templates/admin/options.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/customizer-options-tree/templates/admin/ajax/inputs.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/customizer-options-tree/templates/admin/ajax/default/section.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/customizer-options-tree/customizer-options-tree.php:27

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: options, custom option tree, tree, options tree, get_option...

customizer-options-tree/customizer-options-tree.php 69% from 13 tests

"Customizer Options Tree" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0.0" instead of "5.3")
  • Description: The description should be shorter than 140 characters (currently 354 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin698 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP105678564
JavaScript2101133
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity8.00
▷ Minimum class complexity3.00
▷ Maximum class complexity17.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin