84% change-comment-parent

Code Review | Change Comment Parent

WordPress plugin Change Comment Parent scored84%from 54 tests.

About plugin

  • Plugin page: change-comment-pa...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Dec 15, 2015
  • Latest release: Dec 15, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: IntellectSys (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,106 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.12ms] Passed 4 tests

An overview of server-side resources used by Change Comment Parent
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.04 ▼3.67
Dashboard /wp-admin3.32 ▲0.0246.31 ▲1.81
Posts /wp-admin/edit.php3.37 ▲0.0248.74 ▲2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.72 ▼0.77
Media Library /wp-admin/upload.php3.25 ▲0.0239.32 ▲3.53

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Change Comment Parent
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.49 ▼1.181.68 ▼0.2040.82 ▼2.73
Dashboard /wp-admin2,209 ▲215.90 ▲0.9697.51 ▼8.7036.35 ▼3.34
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0139.70 ▼0.8333.84 ▼0.58
Add New Post /wp-admin/post-new.php1,533 ▼023.30 ▲0.14681.05 ▲4.5349.45 ▼5.58
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.0798.62 ▼10.7739.96 ▼5.36

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 no errors were found, this is by no means 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-comment-parent/change-comment-parent.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: child, parent, comments list, comment, nested...

change-comment-parent/change-comment-parent.php Passed 13 tests

"Change Comment Parent" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
116 characters long description:
Simple plug-in for editing the parent comments to any user comments. Use it to edit the threaded structure comments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin255 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods116.67%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.96KB12.32KB▼ 54.31%