84% show-parent-comment

Code Review | Show Parent Comment

WordPress plugin Show Parent Comment scored84%from 54 tests.

About plugin

  • Plugin page: show-parent-comment
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 9, 2015
  • Latest release: Nov 11, 2015
  • Number of updates: 17
  • Update frequency: every 3.7 days
  • Top authors: StephenCronin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,438 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.04ms] Passed 4 tests

An overview of server-side resources used by Show Parent Comment
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.33 ▼3.15
Dashboard /wp-admin3.31 ▲0.0146.62 ▼6.73
Posts /wp-admin/edit.php3.37 ▲0.0148.51 ▲0.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.13 ▼16.34
Media Library /wp-admin/upload.php3.24 ▲0.0135.12 ▼1.94

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 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
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Show Parent Comment
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.45 ▲0.051.65 ▼0.0743.83 ▼3.06
Dashboard /wp-admin2,206 ▲185.88 ▲0.86104.65 ▼11.1442.45 ▼3.06
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0139.57 ▲1.9936.04 ▼4.00
Add New Post /wp-admin/post-new.php1,519 ▼023.35 ▲0.17663.26 ▼6.9053.08 ▼1.45
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.0495.54 ▼7.7640.87 ▼3.49

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-parent-comment/show-parent-comment.php:65

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === show-parent-comment === )
The official readme.txt is a good inspiration

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

The main PHP script in "Show Parent Comment" version 0.2.1 is automatically included on every request by WordPress
129 characters long description:
Show the parent comment as part of the comment text, in the Admin area only. Useful for getting context when moderating 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
No dangerous file extensions were detected66 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1193827
CSS13020
JavaScript10419

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin