84% simple-child-theme-creator

Code Review | Simple Child Theme Creator

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

About plugin

  • Plugin page: simple-child-them...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-1.0.0
  • WordPress version: 6.3.1
  • First release: Oct 22, 2016
  • Latest release: Oct 22, 2016
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: vohof (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /836 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.51ms] Passed 4 tests

A check of server-side resources used by Simple Child Theme Creator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.38 ▲2.36
Dashboard /wp-admin3.31 ▲0.0145.50 ▼3.23
Posts /wp-admin/edit.php3.36 ▲0.0045.62 ▼0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.99 ▼2.07
Media Library /wp-admin/upload.php3.23 ▲0.0033.61 ▼0.66
Create Child Theme /wp-admin/themes.php?page=sct3.2226.64

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Simple Child Theme Creator: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼0.965.45 ▲3.8171.41 ▲21.86
Dashboard /wp-admin2,210 ▲224.82 ▼1.09107.90 ▲2.5840.82 ▲1.69
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0140.47 ▲3.9634.89 ▲0.70
Add New Post /wp-admin/post-new.php1,536 ▲2223.43 ▲6.00626.39 ▼54.3667.40 ▲5.74
Media Library /wp-admin/upload.php1,392 ▲104.23 ▼0.0195.79 ▼3.4441.42 ▼2.69
Create Child Theme /wp-admin/themes.php?page=sct7812.0324.7723.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× 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/simple-child-theme-creator/simple-child-theme.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-child-theme-creator/view/admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: child, enqueue child, child theme, simple, one-click

simple-child-theme-creator/simple-child-theme.php 85% from 13 tests

The main file in "Simple Child Theme Creator" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-child-theme-creator.php" instead of "simple-child-theme.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin95 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2181395

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin