84% child-theme-wizard

Code Review | Child Theme Wizard

WordPress plugin Child Theme Wizard scored84%from 54 tests.

About plugin

  • Plugin page: child-theme-wizard
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Mar 19, 2014
  • Latest release: Nov 4, 2022
  • Number of updates: 44
  • Update frequency: every 71.7 days
  • Top authors: versluis (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

20,000+ active /140,449 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
Installer ran successfully

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

Analyzing server-side resources used by Child Theme Wizard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.61 ▼0.92
Dashboard /wp-admin3.34 ▼0.0152.40 ▼14.77
Posts /wp-admin/edit.php3.39 ▲0.0348.31 ▼7.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.08 ▼1.95
Media Library /wp-admin/upload.php3.27 ▲0.0335.74 ▼7.35
Child Theme Wizard /wp-admin/tools.php?page=ChildThemeWizard3.2534.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Child Theme Wizard
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.26 ▼0.041.92 ▼0.0244.27 ▲2.54
Dashboard /wp-admin2,199 ▲255.66 ▲0.0185.82 ▼8.0441.22 ▼4.63
Posts /wp-admin/edit.php2,104 ▲252.00 ▼0.0238.05 ▼0.5733.39 ▼2.19
Add New Post /wp-admin/post-new.php1,529 ▼317.81 ▼5.38623.86 ▼63.1968.57 ▼0.53
Media Library /wp-admin/upload.php1,404 ▲44.14 ▼0.13100.27 ▼15.8644.33 ▼5.44
Child Theme Wizard /wp-admin/tools.php?page=ChildThemeWizard1,3137.81212.1063.97

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/child-theme-wizard/child-theme-wizard.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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 need to be fixed: The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Child Theme Wizard" version 1.4
55 characters long description:
Creates a child theme from any theme you have installed

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin240 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26894240

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.17
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%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot.png98.64KB56.96KB▼ 42.25%
images/guru-header-2013.png33.72KB13.19KB▼ 60.90%