84% customize-comments

Code Review | Customize Comments

WordPress plugin Customize Comments scored84%from 54 tests.

About plugin

  • Plugin page: customize-comments
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Nov 27, 2017
  • Latest release: Nov 27, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: westonruter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,044 total downloads


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.04MB] [CPU: ▼2.09ms] Passed 4 tests

An overview of server-side resources used by Customize Comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.29 ▲0.21
Dashboard /wp-admin3.34 ▲0.0452.26 ▲2.49
Posts /wp-admin/edit.php3.39 ▲0.0450.58 ▼0.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.10 ▼8.80
Media Library /wp-admin/upload.php3.26 ▲0.0437.93 ▲0.49

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Customize Comments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.94 ▲0.3245.63 ▼0.14
Dashboard /wp-admin2,198 ▲245.63 ▼0.0992.84 ▲3.5542.74 ▼1.60
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0433.84 ▼6.5435.93 ▼2.01
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▲0.18598.99 ▼78.7758.93 ▼1.12
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0399.35 ▼16.2645.60 ▼2.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/customize-comments/php/class-customize-comment-content-setting.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Customize_Comments\\add_action() in wp-content/plugins/customize-comments/customize-comments.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: customizer, comments, customize

customize-comments/customize-comments.php Passed 13 tests

"Customize Comments" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
Edit comments with live preview and bundle edits in Customizer changesets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin393 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.50
▷ Minimum class complexity5.00
▷ Maximum class complexity12.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods18.33%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions3100.00%
▷ Global constants00.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
No PNG files were detected