84% child-themes-helper

Code Review | Child Themes Helper

WordPress plugin Child Themes Helper scored84%from 54 tests.

About plugin

  • Plugin page: child-themes-helper
  • Plugin version: 2.2.7
  • PHP compatiblity: 5.6.31+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 23, 2018
  • Latest release: Sep 13, 2023
  • Number of updates: 24
  • Update frequency: every 77.2 days
  • Top authors: paulswarthout (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /2,834 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.14MB] [CPU: ▼0.56ms] Passed 4 tests

This is a short check of server-side resources used by Child Themes Helper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1448.23 ▲4.08
Dashboard /wp-admin3.44 ▲0.1453.43 ▲0.26
Posts /wp-admin/edit.php3.47 ▲0.1256.27 ▲7.00
Add New Post /wp-admin/post-new.php6.15 ▲0.2683.63 ▼13.37
Media Library /wp-admin/upload.php3.38 ▲0.1543.77 ▲6.78

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 79 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
pas_cth_edit_allowedFileTypes
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Child Themes Helper
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9214.69 ▲0.311.81 ▼0.0243.96 ▲2.57
Dashboard /wp-admin2,244 ▲595.93 ▲0.12101.73 ▼1.9441.67 ▼2.90
Posts /wp-admin/edit.php2,127 ▲382.08 ▲0.0336.88 ▼3.2333.91 ▼0.18
Add New Post /wp-admin/post-new.php1,550 ▲1717.83 ▼5.16682.96 ▲21.8538.53 ▼14.04
Media Library /wp-admin/upload.php1,426 ▲354.30 ▲0.12101.34 ▼4.1241.65 ▼3.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • pas_cth_test
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • pas_cth_edit_allowedFileTypes

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function child_themes_helper\\delete_option() in wp-content/plugins/child-themes-helper/lib/plugin_constants.php:24

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

child-themes-helper/child-themes-helper.php 92% from 13 tests

The entry point to "Child Themes Helper" version 2.2.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 235 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,652 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP105426092,268
CSS6211041,732
JavaScript81961351,630
Markdown110022

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity27.25
▷ Minimum class complexity4.00
▷ Maximum class complexity84.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods87
▷ Static methods00.00%
▷ Public methods8091.95%
▷ Protected methods00.00%
▷ Private methods78.05%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.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
26 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/fonts/samples/Roboto-Regular.png1.21KB1.17KB▼ 2.99%
assets/fonts/samples/Roboto-Black.png1.18KB1.13KB▼ 4.05%
assets/fonts/samples/OpenSansCondensed-Bold.png1.13KB1.09KB▼ 3.37%
assets/fonts/samples/Roboto-Medium.png1.20KB1.16KB▼ 3.33%
assets/fonts/samples/GloriaHallelujah.png0.97KB0.93KB▼ 4.13%