10% mytory-markdown

Code Review | Mytory Markdown

WordPress plugin Mytory Markdown scored10%from 54 tests.

About plugin

  • Plugin page: mytory-markdown
  • Plugin version: 1.6.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Nov 23, 2022
  • Number of updates: 93
  • Update frequency: every 35.7 days
  • Top authors: mytory (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /9,121 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/mytory-markdown/markdown.php+997
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.39MB] [CPU: ▼52.33ms] Passed 4 tests

Server-side resources used by Mytory Markdown
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.60 ▼0.867.69 ▼37.12
Dashboard /wp-admin2.62 ▼0.697.83 ▼39.78
Posts /wp-admin/edit.php2.62 ▼0.7410.55 ▼39.11
Add New Post /wp-admin/post-new.php2.62 ▼3.279.88 ▼93.31
Media Library /wp-admin/upload.php2.62 ▼0.617.87 ▼29.40
Mytory Markdown: Settings /wp-admin/options-general.php?page=mytory-markdown2.629.91
Mytory Markdown: URL Batch replace /wp-admin/options-general.php?page=mytory-markdown-batch-update2.628.61

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
mytory_markdown_engine
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Mytory Markdown
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.21 ▼1.091.90 ▼0.1542.94 ▼6.25
Dashboard /wp-admin2,216 ▲314.84 ▼1.06108.71 ▼5.6938.80 ▼4.80
Posts /wp-admin/edit.php2,102 ▲132.06 ▲0.0445.60 ▲7.5537.19 ▲3.46
Add New Post /wp-admin/post-new.php6,301 ▲4,76719.18 ▼3.89931.89 ▲255.8559.07 ▲3.73
Media Library /wp-admin/upload.php1,398 ▲104.19 ▼0.0199.82 ▼2.9547.67 ▲5.61
Mytory Markdown: Settings /wp-admin/options-general.php?page=mytory-markdown1,0301.7128.2930.73
Mytory Markdown: URL Batch replace /wp-admin/options-general.php?page=mytory-markdown-batch-update8351.7125.3226.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/mytory-markdown/markdown.php+997
    Array and string offset access syntax with curly braces is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • mytory_markdown_engine
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 42 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mytory-markdown-batch-update
    • > Deprecated in wp-content/plugins/mytory-markdown/markdown.php+3147
    Array and string offset access syntax with curly braces is deprecated

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 items
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Parsedown' not found in wp-content/plugins/mytory-markdown/ParsedownExtra.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mytory-markdown/batch.php:3
    • > PHP Notice
      Undefined variable: md_mode in wp-content/plugins/mytory-markdown/meta-box.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mytory-markdown/setting.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mytory-markdown/main.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mytory-markdown/how-to-migrate.php:2
    • > PHP Notice
      Undefined variable: md_mode in wp-content/plugins/mytory-markdown/meta-box.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mytory-markdown/meta-box.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: github, markdown editor, markdown, md

mytory-markdown/main.php 85% from 13 tests

The main PHP file in "Mytory Markdown" ver. 1.6.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("mytory-markdown.php" instead of "main.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin5,210 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP131,1941,3084,821
Markdown51400170
PO File15363148
JavaScript212771

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity45.20
▷ Minimum class complexity2.00
▷ Maximum class complexity161.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods201
▷ Static methods10.50%
▷ Public methods13466.67%
▷ Protected methods5627.86%
▷ Private methods115.47%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants1386.67%
▷ Class constants213.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin