78% simple-comment-editing

Code Review | Comment Edit Core - Comment and Review Editing

WordPress plugin Comment Edit Core - Comment and Review Editing scored78%from 54 tests.

About plugin

  • Plugin page: simple-comment-ed...
  • Plugin version: 3.0.15
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 4, 2013
  • Latest release: Oct 25, 2023
  • Number of updates: 250
  • Update frequency: every 14.9 days
  • Top authors: ronalfy (100%)

Code review

54 tests

User reviews

52 reviews

Install metrics

2,000+ active /119,065 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.45MB] [CPU: ▲0.31ms] Passed 4 tests

This is a short check of server-side resources used by Comment Edit Core - Comment and Review Editing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4544.61 ▲6.20
Dashboard /wp-admin3.80 ▲0.5047.04 ▲2.81
Posts /wp-admin/edit.php3.86 ▲0.4948.87 ▲3.03
Add New Post /wp-admin/post-new.php6.32 ▲0.4381.81 ▼4.01
Media Library /wp-admin/upload.php3.66 ▲0.4339.09 ▼0.60
Comment Edit Core /wp-admin/options-general.php?page=comment-edit-core3.6633.51

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Comment Edit Core - Comment and Review Editing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.17 ▼0.451.90 ▲0.2442.84 ▼0.31
Dashboard /wp-admin2,202 ▲225.67 ▲0.0188.14 ▼0.2840.95 ▲1.51
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.1534.57 ▲0.1931.60 ▼4.72
Add New Post /wp-admin/post-new.php1,529 ▲322.94 ▼0.06655.18 ▼47.9454.51 ▲1.35
Media Library /wp-admin/upload.php1,398 ▼24.15 ▼0.0395.53 ▼2.0140.99 ▼3.97
Comment Edit Core /wp-admin/options-general.php?page=comment-edit-core1,0772.1425.0430.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-comment-editing/index.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'DLXPlugins\\CommentEditLite\\Admin\\Tabs\\Tabs' not found in wp-content/plugins/simple-comment-editing/includes/Admin/Tabs/Support.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DLXPlugins\\CommentEditLite\\add_action() in wp-content/plugins/simple-comment-editing/simple-comment-editing.php:867
    • > PHP Fatal error
      Uncaught Error: Class 'DLXPlugins\\CommentEditLite\\Admin\\Tabs\\Tabs' not found in wp-content/plugins/simple-comment-editing/includes/Admin/Tabs/Settings.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'DLXPlugins\\CommentEditLite\\Admin\\Tabs\\Tabs' not found in wp-content/plugins/simple-comment-editing/includes/Admin/Tabs/Integrations.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: comment editing, woocommerce reviews, edit comments, comments

simple-comment-editing/index.php 92% from 13 tests

This is the main PHP file of "Comment Edit Core - Comment and Review Editing" version 3.0.15, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-comment-editing.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected8,058 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,2638554,264
PHP245681,5692,367
CSS413521746
PO File15226216661
JSON160020

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.75
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes00.00%
Methods126
▷ Static methods6853.97%
▷ Public methods12095.24%
▷ Protected methods00.00%
▷ Private methods64.76%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants5
▷ Global constants5100.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
5 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/comment-edit-base.png17.31KB7.61KB▼ 56.04%
images/screenshot-theme-default.png26.77KB11.85KB▼ 55.74%
images/screenshot-theme-dark.png25.77KB11.73KB▼ 54.49%
images/screenshot-theme-light.png24.68KB11.82KB▼ 52.13%
images/logo.png25.45KB11.59KB▼ 54.44%