89% markup-markdown

Code Review | Markup Markdown

WordPress plugin Markup Markdown scored89%from 54 tests.

About plugin

  • Plugin page: markup-markdown
  • Plugin version: 2.6.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2022
  • Latest release: Nov 17, 2023
  • Number of updates: 55
  • Update frequency: every 12.5 days
  • Top authors: peter202202 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,074 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.12MB] [CPU: ▼8.80ms] Passed 4 tests

An overview of server-side resources used by Markup Markdown
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲0.8754.82 ▲13.43
Dashboard /wp-admin3.84 ▲0.5348.29 ▲0.95
Posts /wp-admin/edit.php3.89 ▲0.5350.88 ▲3.14
Add New Post /wp-admin/post-new.php3.90 ▼1.9956.56 ▼44.44
Media Library /wp-admin/upload.php3.70 ▲0.4740.34 ▲5.16
Markup Markdown /wp-admin/options-general.php?page=markup-markdown-admin3.6933.04

Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • Illegal file modification found: 3 files (0.26KB) outside of "wp-content/plugins/markup-markdown/" and "wp-content/uploads/"
    • (new file) wp-content/mmd-cache/index.php
    • (new file) wp-content/mmd-cache/.1_1.html
    • (new file) wp-content/mmd-cache/conf.php
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Markup Markdown
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,780 ▲1813.25 ▼1.0911.49 ▲9.6947.92 ▲1.89
Dashboard /wp-admin2,025 ▼1525.37 ▼0.2484.73 ▼9.2939.29 ▼4.67
Posts /wp-admin/edit.php2,107 ▲71.95 ▲0.0037.14 ▲0.7035.62 ▲3.57
Add New Post /wp-admin/post-new.php2,858 ▲1,3325.14 ▼17.92176.14 ▼548.7595.49 ▲40.59
Media Library /wp-admin/upload.php1,407 ▲134.26 ▲0.06102.03 ▲2.5642.08 ▼3.28
Markup Markdown /wp-admin/options-general.php?page=markup-markdown-admin9811.8830.6734.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

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

This is the main PHP file of "Markup Markdown" version 2.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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 detected24,303 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
CSS102,07610911,386
JavaScript161,9012,1309,665
PHP198667953,248
Markdown1304

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity27.40
▷ Minimum class complexity2.00
▷ Maximum class complexity186.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes20
▷ Abstract classes15.00%
▷ Concrete classes1995.00%
▷ Final classes15.26%
Methods166
▷ Static methods42.41%
▷ Public methods9154.82%
▷ Protected methods6539.16%
▷ Private methods106.02%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/lightbox2/images/prev.png1.33KB1.59KB0.00%
assets/lightbox2/images/next.png1.32KB1.58KB0.00%
assets/lightbox2/images/close.png0.27KB0.29KB0.00%