89% markdown-comment

Code Review | Markdown Comment

WordPress plugin Markdown Comment scored 89% from 54 tests.

About plugin

  • Plugin page: markdown-comment
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 1, 2023
  • Latest release: Aug 7, 2023
  • Number of updates: 3
  • Update frequency: every 33.7 days
  • Top authors: Wpcalc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 275 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.39ms] Passed 4 tests

An overview of server-side resources used by Markdown Comment
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.80 ▼0.84
Dashboard /wp-admin3.31 ▲0.0146.13 ▲0.62
Posts /wp-admin/edit.php3.36 ▲0.0046.06 ▲3.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.88 ▲6.27
Media Library /wp-admin/upload.php3.23 ▲0.0034.71 ▼1.99

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Markdown Comment
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▲0.301.77 ▼0.4339.48 ▼8.00
Dashboard /wp-admin2,206 ▲174.87 ▼0.04112.69 ▼9.6142.71 ▼5.84
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0539.32 ▲2.4434.33 ▲0.89
Add New Post /wp-admin/post-new.php1,537 ▲423.47 ▲0.13598.09 ▼64.9762.25 ▲1.35
Media Library /wp-admin/upload.php1,385 ▲34.21 ▲0.06104.29 ▲0.4944.68 ▲1.13

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Comment with Markdown syntax), #2 (HTML comment publish)
The official readme.txt might help

markdown-comment/markdown-comment.php Passed 13 tests

Analyzing the main PHP file in "Markdown Comment" version 1.0
55 characters long description:
Adds the ability to use Markdown formatting in comment.

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
Good job! No executable or dangerous file extensions detected1,258 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34273591,258

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity230.00
▷ Minimum class complexity230.00
▷ Maximum class complexity230.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods67
▷ Static methods45.97%
▷ Public methods913.43%
▷ Protected methods5886.57%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.63MB with 0.39MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png261.77KB96.21KB▼ 63.25%
screenshot-1.png383.21KB148.89KB▼ 61.15%