94% parse-markdown

Code Review | Parse Markdown

WordPress plugin Parse Markdown scored 94% from 54 tests.

About plugin

  • Plugin page: parse-markdown
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 5.8.1
  • First release: Aug 18, 2020
  • Latest release: Aug 19, 2020
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: bmarshall511 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 236 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼138.90ms] Passed 4 tests

Server-side resources used by Parse Markdown
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0535.27 ▼1.27
Dashboard /wp-admin3.11 ▲0.0559.03 ▲11.29
Posts /wp-admin/edit.php3.22 ▲0.1149.45 ▲4.89
Add New Post /wp-admin/post-new.php5.46 ▲0.0395.77 ▼563.14
Media Library /wp-admin/upload.php3.05 ▲0.0536.62 ▲3.93

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Parse Markdown
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.94 ▲0.3110.40 ▼0.2851.53 ▲0.01
Dashboard /wp-admin2,967 ▲305.93 ▼0.20169.20 ▲12.58116.99 ▼5.77
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0076.02 ▲6.72100.09 ▲2.44
Add New Post /wp-admin/post-new.php1,498 ▼10818.85 ▼0.03382.36 ▲3.37113.06 ▲1.35
Media Library /wp-admin/upload.php1,807 ▼35.03 ▲0.03164.15 ▲8.15123.32 ▼1.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/parse-markdown/parse-markdown.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: code, markdown

parse-markdown/parse-markdown.php 92% from 13 tests

The main PHP file in "Parse Markdown" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,722 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP94513081,580
JSON30088
Markdown132054

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity60.25
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods76
▷ Static methods67.89%
▷ Public methods3140.79%
▷ Protected methods4457.89%
▷ Private methods11.32%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.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
No PNG files were detected