83% orbisius-child-theme-creator

Code Review | Child Theme Creator by Orbisius

WordPress plugin Child Theme Creator by Orbisius scored83%from 54 tests.

About plugin

  • Plugin page: orbisius-child-th...
  • Plugin version: 1.5.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.9
  • WordPress version: 6.3.1
  • First release: Jun 5, 2013
  • Latest release: May 10, 2022
  • Number of updates: 263
  • Update frequency: every 13.4 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

44 reviews

Install metrics

20,000+ active /561,333 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.62ms] Passed 4 tests

A check of server-side resources used by Child Theme Creator by Orbisius
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.09 ▼5.19
Dashboard /wp-admin3.36 ▲0.0550.96 ▼0.46
Posts /wp-admin/edit.php3.41 ▲0.0548.65 ▼6.80
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.18 ▼14.01
Media Library /wp-admin/upload.php3.28 ▲0.0537.80 ▲3.89
Orbisius Child Theme Creator /wp-admin/themes.php?page=orbisius_child_theme_creator_themes_action3.3036.33
Orbisius Child Theme Creator /wp-admin/options-general.php?page=orbisius_child_theme_creator_settings_page3.2536.60
Orbisius Theme Editor /wp-admin/themes.php?page=orbisius_child_theme_creator_theme_editor_action3.2834.20

Server storage [IO: ▲0.88MB] [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: 36 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
orbisius_child_theme_creator_options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Child Theme Creator by Orbisius
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.29 ▼0.971.72 ▼0.2444.32 ▼4.02
Dashboard /wp-admin2,238 ▲475.88 ▲0.97104.06 ▼4.7138.92 ▼5.11
Posts /wp-admin/edit.php2,118 ▲261.97 ▼0.0840.88 ▼2.0433.61 ▼4.33
Add New Post /wp-admin/post-new.php1,534 ▲1517.64 ▼5.61592.01 ▼14.8249.77 ▼14.72
Media Library /wp-admin/upload.php1,420 ▲324.19 ▲0.0198.09 ▼13.5144.60 ▼0.61
Orbisius Child Theme Creator /wp-admin/themes.php?page=orbisius_child_theme_creator_themes_action2,1024.5491.7946.81
Orbisius Child Theme Creator /wp-admin/options-general.php?page=orbisius_child_theme_creator_settings_page1,3394.7587.6541.51
Orbisius Theme Editor /wp-admin/themes.php?page=orbisius_child_theme_creator_theme_editor_action2,3762.4852.1051.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/orbisius-child-theme-creator/addons/cloud_lib/lib/snippet_lib.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-child-theme-creator/addons/clipboard/init.php:4
    • > PHP Warning
      Use of undefined constant ORBISIUS_CHILD_THEME_CREATOR_BASE_DIR - assumed 'ORBISIUS_CHILD_THEME_CREATOR_BASE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/orbisius-child-theme-creator/addons/init.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'orbisius_ctc_cloud_lib' not found in wp-content/plugins/orbisius-child-theme-creator/addons/cloud_lib/modules/cloud.php:3
    • > PHP Warning
      Use of undefined constant ORBISIUS_CHILD_THEME_CREATOR_BASE_DIR - assumed 'ORBISIUS_CHILD_THEME_CREATOR_BASE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/orbisius-child-theme-creator/addons/init.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ORBISIUS_CHILD_THEME_CREATOR_BASE_DIR/addons/clipboard/init.php' (include_path='.:/usr/share/php') in wp-content/plugins/orbisius-child-theme-creator/addons/init.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-child-theme-creator/orbisius-child-theme-creator.php:32
    • > PHP Warning
      require_once(ORBISIUS_CHILD_THEME_CREATOR_BASE_DIR/addons/clipboard/init.php): failed to open stream: No such file or directory in wp-content/plugins/orbisius-child-theme-creator/addons/init.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Plugin page after installation), #2 (Orbisius Child Theme Creator in Appearance > Orbisius Child Theme Creator - before creating a child theme), #3 (Orbisius Child Theme Creator in Appearance > Orbisius Child Theme Creator - after creating a child theme), #4 (Orbisius Theme Editor in Action from Admin > Appearance > Orbisius Theme Editor)
You can look at the official readme.txt

orbisius-child-theme-creator/orbisius-child-theme-creator.php Passed 13 tests

The principal PHP file in "Child Theme Creator by Orbisius" v. 1.5.4 is loaded by WordPress automatically on each request
121 characters long description:
This plugin allows you to quickly create child themes from any theme that you have currently installed on your site/blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,525 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP97796483,019
JavaScript72482611,123
CSS47330261
Markdown1670122

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity27.00
▷ Minimum class complexity2.00
▷ Maximum class complexity59.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods78
▷ Static methods1620.51%
▷ Public methods78100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.51MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
addons/cloud_lib/assets/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
i/guNzr.qr.2.png0.23KB0.23KB0.43%
addons/cloud_lib/assets/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
screenshot-4.png39.47KB20.59KB▼ 47.84%
screenshot-3.png257.34KB62.57KB▼ 75.69%