78% wp-comment-designer-lite

Code Review | Smartest Way To Design & Customize WordPress Comments & Comment Form - WP Comment Designer Lite

WordPress plugin Smartest Way To Design & Customize WordPress Comments & Comment Form - WP Comment Designer Lite scored 78% from 54 tests.

About plugin

  • Plugin page: wp-comment-design...
  • Plugin version: 2.0.4
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.8.1
  • First release: Apr 2, 2018
  • Latest release: Nov 18, 2021
  • Number of updates: 24
  • Update frequency: every 55.3 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active / 8,662 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.21MB] [CPU: ▼144.67ms] Passed 4 tests

This is a short check of server-side resources used by Smartest Way To Design & Customize WordPress Comments & Comment Form - WP Comment Designer Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.03 ▲0.3035.40 ▲13.13
Dashboard /wp-admin3.26 ▲0.2044.82 ▼0.22
Posts /wp-admin/edit.php3.37 ▲0.2644.17 ▼1.54
Add New Post /wp-admin/post-new.php5.61 ▲0.1888.22 ▼577.39
Media Library /wp-admin/upload.php3.20 ▲0.1933.51 ▲0.47
How To Use /wp-admin/admin.php?page=wpcd-how-to-use3.2030.15
Check Premium Version /wp-admin/admin.php?page=wpcd-premium2.9920.94
WP Comment Designer Lite /wp-admin/admin.php?page=wp-comment-designer-lite3.2230.00
More WordPress Stuff /wp-admin/admin.php?page=wpcd-about-us3.1828.12
Documentation /wp-admin/admin.php?page=wpcd-documentation2.9922.47
Comment Form Builder /wp-admin/admin.php?page=wpcd-comment-form-builder3.2132.17

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 81 new files
Database: no new tables, 2 new options
New WordPress options
wpcd_settings
wpcd_form_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Smartest Way To Design & Customize WordPress Comments & Comment Form - WP Comment Designer Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,890 ▲29416.39 ▲0.3417.95 ▲6.4250.42 ▲1.13
Dashboard /wp-admin3,020 ▲865.87 ▼0.29132.81 ▼12.45117.29 ▼4.75
Posts /wp-admin/edit.php2,793 ▲542.72 ▼0.0164.68 ▼3.5987.75 ▼3.07
Add New Post /wp-admin/post-new.php1,532 ▼14018.82 ▼0.04373.53 ▼0.25108.68 ▼1.64
Media Library /wp-admin/upload.php1,864 ▲545.04 ▲0.01142.86 ▼4.21122.50 ▲1.61
How To Use /wp-admin/admin.php?page=wpcd-how-to-use1,5262.9564.2595.89
Check Premium Version /wp-admin/admin.php?page=wpcd-premium80.900.050.19
WP Comment Designer Lite /wp-admin/admin.php?page=wp-comment-designer-lite2,3972.8666.9399.67
More WordPress Stuff /wp-admin/admin.php?page=wpcd-about-us1,3966.81127.3197.43
Documentation /wp-admin/admin.php?page=wpcd-documentation2,06410.44226.20139.69
Comment Form Builder /wp-admin/admin.php?page=wpcd-comment-form-builder2,0912.5269.9373.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 2 options
    • wpcd_form_settings
    • wpcd_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 29× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wp-comment-designer-lite/inc/frontend/templates/template-2.php
    • > /wp-content/plugins/wp-comment-designer-lite/inc/frontend/fields/wpcd-url.php
    • > /wp-content/plugins/wp-comment-designer-lite/inc/frontend/wpcd-custom-css.php
    • > /wp-content/plugins/wp-comment-designer-lite/inc/backend/main_settings/panel/wpcd_general.php
    • > /wp-content/plugins/wp-comment-designer-lite/inc/frontend/wpcd_comment_listing_inner.php
    • > /wp-content/plugins/wp-comment-designer-lite/inc/frontend/fields/wpcd-text.php
    • > /wp-content/plugins/wp-comment-designer-lite/inc/backend/form_builder/wpcd_form_settings.php
    • > /wp-content/plugins/wp-comment-designer-lite/inc/backend/form_builder/panel/wpcd_form_field.php
    • > /wp-content/plugins/wp-comment-designer-lite/inc/backend/main_settings/panel/wpcd_display.php
    • > /wp-content/plugins/wp-comment-designer-lite/inc/frontend/templates/template-4.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=wpcd-premium
    • > Network (severe)
    https://accesspressthemes.com/wordpress-plugins/wp-comment-designer/ - Failed to load resource: the server responded with a status of 504 ()
    • > GET request to /wp-admin/admin.php?page=wpcd-documentation
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/documentation/wp-comment-designer-lite/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/admin.php?page=wpcd-documentation
    • > Network (severe)
    https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: dislike, rearrange comment form fields, comment rating, comment design, comment...

wp-comment-designer-lite/wp-comment-designer-lite.php Passed 13 tests

The main PHP script in "Smartest Way To Design & Customize WordPress Comments & Comment Form - WP Comment Designer Lite" version 2.0.4 is automatically included on every request by WordPress
86 characters long description:
WP Comment Designer Lite helps you customize your WordPress comments and comment form.

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
Success! There were no dangerous files found in this plugin13,108 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS41,1471647,566
SVG1002,671
PHP30174392,055
JavaScript55771816

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity146.00
▷ Minimum class complexity146.00
▷ Maximum class complexity146.00
Average method complexity5.14
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods720.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 1.74MB with 1.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/template-save-button/1.png2.00KB0.71KB▼ 64.57%
img/flicker.png1.45KB0.57KB▼ 60.47%
img/googleplus.png1.91KB0.99KB▼ 48.06%
img/logo.png3.92KB2.03KB▼ 48.21%
img/template-comment-form/template-4.png14.33KB4.91KB▼ 65.74%