89% child-theme-copy-settings

Code Review | Child Theme Copy Settings

WordPress plugin Child Theme Copy Settings scored89%from 54 tests.

About plugin

  • Plugin page: child-theme-copy-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: May 13, 2019
  • Latest release: May 13, 2019
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: longnguyen (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /2,419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.46ms] Passed 4 tests

An overview of server-side resources used by Child Theme Copy Settings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.80 ▼1.65
Dashboard /wp-admin3.33 ▼0.0142.64 ▼16.23
Posts /wp-admin/edit.php3.38 ▲0.0343.99 ▲0.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0377.55 ▼21.10
Media Library /wp-admin/upload.php3.25 ▲0.0331.98 ▼2.87
Child Theme Copy Settings /wp-admin/themes.php?page=child-theme-copy-settings3.2229.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Child Theme Copy Settings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.57 ▼0.811.91 ▲0.1537.46 ▼7.97
Dashboard /wp-admin2,213 ▲224.85 ▼1.05108.03 ▲7.3440.77 ▼6.06
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0438.69 ▲2.7736.40 ▲4.85
Add New Post /wp-admin/post-new.php1,536 ▲1623.05 ▼0.54659.32 ▼3.8259.22 ▲2.15
Media Library /wp-admin/upload.php1,395 ▲74.08 ▼0.1896.09 ▼0.2340.77 ▼2.21
Child Theme Copy Settings /wp-admin/themes.php?page=child-theme-copy-settings7582.0522.9025.82

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 detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === child-theme-copy-settings === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
You can look at the official readme.txt

child-theme-copy-settings/child-theme-copy-settings.php 92% from 13 tests

The principal PHP file in "Child Theme Copy Settings" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin94 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171694

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin