84% easy-child-theme-creator

Code Review | Easy Child Theme Creator

WordPress plugin Easy Child Theme Creator scored84%from 54 tests.

About plugin

  • Plugin page: easy-child-theme-...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2015
  • Latest release: Feb 19, 2020
  • Number of updates: 20
  • Update frequency: every 85.6 days
  • Top authors: wpashokg (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /8,858 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.79ms] Passed 4 tests

Server-side resources used by Easy Child Theme Creator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.07 ▲0.77
Dashboard /wp-admin3.31 ▲0.0150.49 ▲0.70
Posts /wp-admin/edit.php3.37 ▲0.0148.68 ▼2.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.69 ▼13.39
Media Library /wp-admin/upload.php3.24 ▲0.0139.11 ▼0.09

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Child Theme Creator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲9714.79 ▲0.342.15 ▲0.3844.15 ▲0.17
Dashboard /wp-admin2,239 ▲455.82 ▼0.14100.01 ▼4.7438.83 ▼9.64
Posts /wp-admin/edit.php2,115 ▲152.01 ▼0.0136.94 ▼3.8834.70 ▼0.69
Add New Post /wp-admin/post-new.php1,555 ▲1023.31 ▲0.24688.58 ▲8.8856.55 ▲3.39
Media Library /wp-admin/upload.php1,418 ▲214.27 ▲0.03109.75 ▲3.5249.32 ▲6.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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 everything seems fine, this is not 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 fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-child-theme-creator/index.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_root() in wp-content/plugins/easy-child-theme-creator/options.php:2

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: themes, child themes

easy-child-theme-creator/index.php 92% from 13 tests

"Easy Child Theme Creator" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-child-theme-creator.php" instead of "index.php")

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 plugin195 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32427146
Markdown121039
CSS11010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
paypal-donate-button.png7.14KB3.56KB▼ 50.14%