10% mark-it-down-wp

Code Review | Mark It Down Wordpress!

WordPress plugin Mark It Down Wordpress! scored10%from 54 tests.

About plugin

  • Plugin page: mark-it-down-wp
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.7.5
  • WordPress version: 6.3.1
  • First release: May 17, 2017
  • Latest release: May 17, 2017
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: 7php (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /768 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/mark-it-down-wp/markdown/lib/extra.php+796
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.47MB] [CPU: ▼47.64ms] Passed 4 tests

A check of server-side resources used by Mark It Down Wordpress!
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.51 ▼0.955.12 ▼30.97
Dashboard /wp-admin2.53 ▼0.776.51 ▼39.72
Posts /wp-admin/edit.php2.53 ▼0.828.23 ▼39.10
Add New Post /wp-admin/post-new.php2.53 ▼3.357.00 ▼80.77
Media Library /wp-admin/upload.php2.53 ▼0.696.42 ▼28.48

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
wpcom_publish_comments_with_markdown
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
wpcom_publish_posts_with_markdown
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Mark It Down Wordpress!: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.48 ▲0.101.72 ▼0.2743.01 ▼0.07
Dashboard /wp-admin2,209 ▲184.85 ▼0.04109.69 ▼8.4938.38 ▼9.97
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0240.00 ▲1.9735.49 ▲1.34
Add New Post /wp-admin/post-new.php6,075 ▲4,53319.82 ▼3.20792.60 ▲117.9789.25 ▲35.97
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0197.13 ▼7.4243.84 ▼0.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/mark-it-down-wp/markdown/lib/extra.php+796
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • wpcom_publish_posts_with_markdown
    • widget_recent-comments
    • db_upgraded
    • wpcom_publish_comments_with_markdown
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'MarkdownExtra_Parser' not found in wp-content/plugins/mark-it-down-wp/markdown/lib/gfm.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mark-it-down-wp/markdown/easy-markdown.php:763
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mark-it-down-wp/markitdownwordpress.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: markdown, markup

mark-it-down-wp/markitdownwordpress.php 69% from 13 tests

The principal PHP file in "Mark It Down Wordpress!" v. 2.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("mark-it-down-wp.php" instead of "markitdownwordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,616 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55661,3782,583
JSON10017
Markdown13016

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity51.00
▷ Minimum class complexity10.00
▷ Maximum class complexity101.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods161
▷ Static methods42.48%
▷ Public methods14288.20%
▷ Protected methods1710.56%
▷ Private methods21.24%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants1168.75%
▷ Class constants531.25%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin