84% child-themify

Code Review | Child Themify

WordPress plugin Child Themify scored84%from 54 tests.

About plugin

  • Plugin page: child-themify
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.8.9
  • WordPress version: 6.3.1
  • First release: Dec 31, 2012
  • Latest release: Jan 30, 2018
  • Number of updates: 29
  • Update frequency: every 64.0 days
  • Top authors: JohnPBloch (100%)

Code review

54 tests

User reviews

43 reviews

Install metrics

10,000+ active /238,144 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.11ms] Passed 4 tests

Server-side resources used by Child Themify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.93 ▼4.21
Dashboard /wp-admin3.37 ▲0.0749.28 ▲0.77
Posts /wp-admin/edit.php3.49 ▲0.1349.20 ▲1.39
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.46 ▼21.43
Media Library /wp-admin/upload.php3.29 ▲0.0736.36 ▲0.45
Create Child Theme /wp-admin/themes.php?page=child_themify3.2935.59

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Child Themify: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.18 ▼1.232.12 ▼0.2741.50 ▼3.89
Dashboard /wp-admin2,207 ▲194.86 ▼1.00101.37 ▼13.3740.23 ▼3.46
Posts /wp-admin/edit.php2,093 ▲11.96 ▼0.0836.00 ▼5.1332.08 ▼2.13
Add New Post /wp-admin/post-new.php1,547 ▲1123.21 ▲0.05672.04 ▲69.7851.23 ▼12.09
Media Library /wp-admin/upload.php1,386 ▼24.18 ▲0.0296.00 ▼3.8341.79 ▼4.09
Create Child Theme /wp-admin/themes.php?page=child_themify8293.8257.4228.57

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/child-themify/child-themify.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: child, theme, themes

child-themify/child-themify.php Passed 13 tests

This is the main PHP file of "Child Themify" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Create child themes at the click of a button

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
Everything looks great! No dangerous files found in this plugin391 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP451182389
CSS1011
JavaScript1011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for 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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin