10% wpp-easy-child-generator

Code Review | Wpp Easy Child Generator

WordPress plugin Wpp Easy Child Generator scored10%from 54 tests.

About plugin

  • Plugin page: wpp-easy-child-ge...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2015
  • Latest release: Aug 1, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: piyushkapoor786 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /941 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/wpp-easy-child-generator/wpp-easy-child-generator.php+100
    syntax error, unexpected end of file

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

A check of server-side resources used by Wpp Easy Child Generator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.58 ▼2.04
Dashboard /wp-admin3.31 ▲0.0052.21 ▼1.79
Posts /wp-admin/edit.php3.36 ▲0.0048.54 ▼1.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.74 ▼22.55
Media Library /wp-admin/upload.php3.23 ▲0.0037.02 ▲2.38

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Wpp Easy Child Generator: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.321.69 ▼0.4842.67 ▲2.06
Dashboard /wp-admin2,195 ▲155.65 ▼0.0291.29 ▼5.3943.46 ▲2.66
Posts /wp-admin/edit.php2,100 ▼02.15 ▲0.0442.62 ▲1.8835.60 ▲1.48
Add New Post /wp-admin/post-new.php1,526 ▼823.68 ▲5.62688.56 ▲17.0258.87 ▼6.38
Media Library /wp-admin/upload.php1,394 ▼94.17 ▲0.0199.02 ▲3.7142.98 ▲0.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/wpp-easy-child-generator/wpp-easy-child-generator.php on line 100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpp-easy-child-generator/create_theme.php:74

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

wpp-easy-child-generator/wpp-easy-child-generator.php Passed 13 tests

The main PHP script in "Wpp Easy Child Generator" version 1.0 is automatically included on every request by WordPress
76 characters long description:
A plugin that allows to create Child Theme of your installed wordpress theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected108 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33631108

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin