10% quick-child-theme-generator

Code Review | Quick Child Theme Generator

WordPress plugin Quick Child Theme Generator scored10%from 54 tests.

About plugin

  • Plugin page: quick-child-theme...
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: Dec 3, 2022
  • Number of updates: 14
  • Update frequency: every 63.2 days
  • Top authors: ajay930 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /8,315 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.97MB] [CPU: ▼57.15ms] Passed 4 tests

A check of server-side resources used by Quick Child Theme Generator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.82 ▼38.20
Dashboard /wp-admin2.05 ▼1.305.03 ▼55.45
Posts /wp-admin/edit.php2.05 ▼1.316.41 ▼42.92
Add New Post /wp-admin/post-new.php2.05 ▼3.845.24 ▼92.01
Media Library /wp-admin/upload.php2.05 ▼1.186.36 ▼29.23
Template /wp-admin/admin.php?page=quick-blank-template-generator2.055.39
Quick Child Theme /wp-admin/admin.php?page=quick-child-theme-generator2.0511.92

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quick Child Theme Generator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.68 ▲0.132.10 ▲0.2544.72 ▲1.41
Dashboard /wp-admin2,218 ▲375.58 ▼0.1391.50 ▼10.3143.02 ▲1.69
Posts /wp-admin/edit.php2,123 ▲202.02 ▲0.0238.64 ▼2.2736.22 ▲0.73
Add New Post /wp-admin/post-new.php1,545 ▲1723.32 ▲0.20660.33 ▼10.8968.02 ▲9.75
Media Library /wp-admin/upload.php1,417 ▲174.21 ▲0.02101.33 ▼7.0147.76 ▲0.84
Template /wp-admin/admin.php?page=quick-blank-template-generator8732.0729.2145.53
Quick Child Theme /wp-admin/admin.php?page=quick-child-theme-generator1,0912.0030.9563.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=quick-child-theme-generator
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_child_theme() in wp-content/plugins/quick-child-theme-generator/views/qcthg_template.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'QCTHG_Helper' not found in wp-content/plugins/quick-child-theme-generator/views/qcthg_menu.php:15

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #4 (Enter any template name and fill other fields as per your requirements. Then click on the Create Template button.)
The official readme.txt is a good inspiration

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

"Quick Child Theme Generator" version 2.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
112 characters long description:
This plugin allows us to generate a quick and easy free child theme and you can create custom templates as well.

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 plugin1,991 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS241491,304
PHP796146680
JavaScript1107

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity34.00
▷ Minimum class complexity16.00
▷ Maximum class complexity52.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods1241.38%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/qcthg-logo.png1.48KB1.21KB▼ 18.43%