90% childify-me

Code Review | Childify Me

WordPress plugin Childify Me scored90%from 54 tests.

About plugin

  • Plugin page: childify-me
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.8
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Jul 20, 2021
  • Number of updates: 64
  • Update frequency: every 37.3 days
  • Top authors: d4z_c0nf (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

10,000+ active /163,103 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
Install script ran successfully

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

Analyzing server-side resources used by Childify Me
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.45 ▼0.25
Dashboard /wp-admin3.36 ▲0.0547.02 ▼0.45
Posts /wp-admin/edit.php3.41 ▲0.0547.30 ▼5.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.05 ▼22.05
Media Library /wp-admin/upload.php3.28 ▲0.0536.20 ▲1.52

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Childify Me: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.57 ▼0.731.78 ▼0.2442.10 ▼4.87
Dashboard /wp-admin2,206 ▲154.88 ▼1.05109.51 ▲7.6540.93 ▼3.59
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0638.84 ▼2.8234.43 ▼2.71
Add New Post /wp-admin/post-new.php1,542 ▼018.27 ▼0.24604.40 ▼23.1449.64 ▼12.52
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0296.54 ▼2.0941.62 ▼4.88

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

childify-me/childify-me.php Passed 13 tests

Analyzing the main PHP file in "Childify Me" version 1.2.3
52 characters long description:
Create a child theme from the Theme Customizer panel

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
There were no executable files found in this plugin675 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP259157268
JavaScript23118168
PO File34851150
CSS20089

PHP code Passed 2 tests

Analyzing 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.52
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity6.22
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods666.67%
▷ Protected methods00.00%
▷ Private methods333.33%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
back/assets/img/childify-me-badge.png8.66KB3.53KB▼ 59.26%