84% parsedown-wp

Code Review | Parsedown for WordPress

WordPress plugin Parsedown for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: parsedown-wp
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 1, 2015
  • Latest release: Apr 24, 2015
  • Number of updates: 5
  • Update frequency: every 10.8 days
  • Top authors: rob1n (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,911 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼6.63ms] Passed 4 tests

Server-side resources used by Parsedown for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2339.44 ▲0.04
Dashboard /wp-admin3.54 ▲0.1953.15 ▼5.46
Posts /wp-admin/edit.php3.65 ▲0.2948.90 ▲2.46
Add New Post /wp-admin/post-new.php6.12 ▲0.2383.66 ▼23.55
Media Library /wp-admin/upload.php3.46 ▲0.2335.62 ▲3.09

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Parsedown for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.401.50 ▼0.4337.41 ▼7.91
Dashboard /wp-admin2,206 ▲184.85 ▼0.03109.57 ▲8.2240.90 ▼4.15
Posts /wp-admin/edit.php2,089 ▲212.04 ▲0.0338.11 ▲0.0735.53 ▲1.30
Add New Post /wp-admin/post-new.php1,533 ▲1423.11 ▼0.02665.72 ▲0.8760.58 ▲2.48
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.07104.13 ▼1.4345.50 ▼0.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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 fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Parsedown' not found in wp-content/plugins/parsedown-wp/Parsedown/ParsedownExtra.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/parsedown-wp/parsedown-wp.php:80

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: posting, markup, formatting, writing, markdown

parsedown-wp/parsedown-wp.php Passed 13 tests

This is the main PHP file of "Parsedown for WordPress" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
A drop-in Markdown plugin using Parsedown Extra.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,513 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35002111,513

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity50.00
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods71
▷ Static methods11.41%
▷ Public methods1622.54%
▷ Protected methods5476.06%
▷ Private methods11.41%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin