78% wp-child-theme-generator

Code Review | WP Child Theme Generator

WordPress plugin WP Child Theme Generator scored78%from 54 tests.

About plugin

  • Plugin page: wp-child-theme-ge...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Jul 19, 2016
  • Latest release: Jul 3, 2023
  • Number of updates: 29
  • Update frequency: every 87.6 days
  • Top authors: WEN Solutions (79.31%)wptravel (24.14%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active /110,341 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.11ms] Passed 4 tests

This is a short check of server-side resources used by WP Child Theme Generator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1135.86 ▼1.87
Dashboard /wp-admin3.44 ▲0.1447.37 ▼3.45
Posts /wp-admin/edit.php3.49 ▲0.1453.08 ▲6.67
Add New Post /wp-admin/post-new.php6.04 ▲0.1685.67 ▼12.17
Media Library /wp-admin/upload.php3.36 ▲0.1441.79 ▲5.04
Child Theme Gen /wp-admin/themes.php?page=custom-child-theme3.3336.13

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

WP Child Theme Generator: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.39 ▲0.041.69 ▲0.0238.79 ▼0.84
Dashboard /wp-admin2,235 ▲585.64 ▲0.0589.57 ▼1.3938.90 ▼2.64
Posts /wp-admin/edit.php2,143 ▲432.03 ▲0.0441.20 ▲6.6635.94 ▲1.38
Add New Post /wp-admin/post-new.php1,562 ▲3623.06 ▲0.07674.32 ▲8.1963.40 ▲10.05
Media Library /wp-admin/upload.php1,440 ▲404.21 ▲0.14110.32 ▼14.1146.46 ▲3.21
Child Theme Gen /wp-admin/themes.php?page=custom-child-theme1,2162.5043.0544.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 9× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-child-theme-generator/wp-custom-child/wp-custom-child.php
    • > /wp-content/plugins/wp-child-theme-generator/wp-easy-child/wp-easy-child.php
    • > /wp-content/plugins/wp-child-theme-generator/wp-custom-child/wp-custom-child-hooks.php
    • > /wp-content/plugins/wp-child-theme-generator/wp-custom-child/wp-custom-child-form.php
    • > /wp-content/plugins/wp-child-theme-generator/templates/functions.php
    • > /wp-content/plugins/wp-child-theme-generator/wp-easy-child/wp-easy-child-hooks.php
    • > /wp-content/plugins/wp-child-theme-generator/wp-child-theme-generator-styling.php
    • > /wp-content/plugins/wp-child-theme-generator/wp-child-theme-generator.php
    • > /wp-content/plugins/wp-child-theme-generator/wp-custom-child/wp-custom-child-form-handling.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-child-theme-generator/templates/css.php:2
    • > PHP Notice
      Undefined variable: function in wp-content/plugins/wp-child-theme-generator/templates/functions.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-child-theme-generator/wp-child-theme-generator.php Passed 13 tests

The primary PHP file in "WP Child Theme Generator" version 1.0.8 is used by WordPress to initiate all plugin functionality
76 characters long description:
A simple plugin for easy child theme making, easy but very effective. Enjoy!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin764 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11172109564
CSS1150120
JavaScript220280

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods150.00%
▷ Public methods150.00%
▷ Protected methods00.00%
▷ Private methods150.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/docico.png7.15KB3.26KB▼ 54.48%
assets/images/plugin.png10.22KB4.68KB▼ 54.23%
assets/images/help.png8.58KB3.63KB▼ 57.74%