84% child-theme-configurator

Code Review | Child Theme Configurator

WordPress plugin Child Theme Configurator scored84%from 54 tests.

About plugin

  • Plugin page: child-theme-confi...
  • Plugin version: 2.6.3
  • PHP compatiblity: 5.6.36+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 29, 2013
  • Latest release: Sep 30, 2023
  • Number of updates: 383
  • Update frequency: every 9.4 days
  • Top authors: lilaeamedia (100%)

Code review

54 tests

User reviews

272 reviews

Install metrics

300,000+ active /5,573,645 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.20ms] Passed 4 tests

Server-side resources used by Child Theme Configurator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.69 ▼0.43
Dashboard /wp-admin3.35 ▲0.0546.75 ▼1.45
Posts /wp-admin/edit.php3.46 ▲0.1146.37 ▲2.66
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.33 ▲3.00
Media Library /wp-admin/upload.php3.27 ▲0.0434.17 ▲0.01
Child Themes /wp-admin/tools.php?page=chld_thm_cfg_menu4.2944.49

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Child Theme Configurator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.181.66 ▲0.0239.54 ▼4.53
Dashboard /wp-admin2,210 ▲224.87 ▼0.02103.03 ▼3.4738.70 ▼4.04
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0334.21 ▼0.7033.53 ▼5.46
Add New Post /wp-admin/post-new.php1,545 ▲118.61 ▲0.31630.33 ▲12.3454.34 ▲4.75
Media Library /wp-admin/upload.php1,392 ▲44.27 ▲0.0498.11 ▼7.5644.28 ▲2.17
Child Themes /wp-admin/tools.php?page=chld_thm_cfg_menu2,5162.7672.0490.10

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/child-theme-configurator/includes/forms/errorstrings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/child-theme-configurator/includes/forms/related.php:2

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Parent/Child tab), #2 (Parent/Child tab with parent theme menu open), #3 (Query/Selector tab), #4 (Property/Value tab), #5 (Web Fonts tab), #6 (Parent CSS tab), #7 (Files tab)
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
You can take inspiration from this readme.txt

child-theme-configurator/child-theme-configurator.php Passed 13 tests

The main PHP script in "Child Theme Configurator" version 2.6.3 is automatically included on every request by WordPress
114 characters long description:
When using the Customizer is not enough - Create child themes and customize styles, templates, functions and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin14,755 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PO File37637802,160

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity95.55
▷ Minimum class complexity1.00
▷ Maximum class complexity438.00
Average method complexity5.14
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
▷ Static methods2911.55%
▷ Public methods24296.41%
▷ Protected methods00.00%
▷ Private methods93.59%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1392.86%
▷ Class constants17.14%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/hook-highlighter-box.png185.99KB59.24KB▼ 68.15%
css/lilaea-logo.png3.20KB2.22KB▼ 30.57%