84% markdown-comment-block

Code Review | Markdown Comment Block

WordPress plugin Markdown Comment Block scored84%from 54 tests.

About plugin

  • Plugin page: markdown-comment-...
  • Plugin version: 0.1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 25, 2021
  • Latest release: May 6, 2022
  • Number of updates: 11
  • Update frequency: every 28.6 days
  • Top authors: richtabor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,011 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
Install script ran successfully

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

This is a short check of server-side resources used by Markdown Comment Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.30 ▼0.44
Dashboard /wp-admin3.31 ▼0.0342.97 ▼20.89
Posts /wp-admin/edit.php3.37 ▲0.0142.42 ▼5.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.20 ▼12.35
Media Library /wp-admin/upload.php3.24 ▲0.0138.78 ▲3.24

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Markdown Comment Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.112.20 ▲0.3436.18 ▼12.21
Dashboard /wp-admin2,195 ▲215.48 ▼0.1081.51 ▼21.1437.97 ▼7.81
Posts /wp-admin/edit.php2,097 ▼61.96 ▲0.0032.81 ▼4.9635.69 ▲0.93
Add New Post /wp-admin/post-new.php6,364 ▲4,83627.65 ▲4.45911.96 ▲215.5767.22 ▲8.37
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.02108.50 ▲6.3446.37 ▲2.41

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
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/markdown-comment-block/markdown-comment-block.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

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

The entry point to "Markdown Comment Block" version 0.1.9 is a PHP file that has certain tags in its header comment area
81 characters long description:
Add markdown inspired comments to posts that render only within the block editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin52 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSON20044
PHP21226
CSS1001
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin