90% markdown-editor

Code Review | Markdown Editor

WordPress plugin Markdown Editor scored90%from 54 tests.

About plugin

  • Plugin page: markdown-editor
  • Plugin version: 0.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Aug 5, 2017
  • Latest release: Apr 6, 2018
  • Number of updates: 18
  • Update frequency: every 115.7 days
  • Top authors: seothemes (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /19,650 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.07MB] [CPU: ▼8.38ms] Passed 4 tests

Analyzing server-side resources used by Markdown Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.81 ▲1.32
Dashboard /wp-admin3.34 ▼0.0145.08 ▼20.73
Posts /wp-admin/edit.php3.39 ▲0.0448.31 ▲3.74
Add New Post /wp-admin/post-new.php5.56 ▼0.3283.70 ▼17.70
Media Library /wp-admin/upload.php3.26 ▲0.0336.83 ▲3.61

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

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

Browser metrics Passed 4 tests

Markdown Editor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.001.54 ▼0.2039.04 ▼4.64
Dashboard /wp-admin2,206 ▲155.86 ▼0.02106.16 ▼9.6142.11 ▼4.84
Posts /wp-admin/edit.php2,114 ▲222.70 ▲0.6849.58 ▲12.5042.54 ▲10.97
Add New Post /wp-admin/post-new.php1,790 ▲26224.47 ▲6.07498.80 ▼138.0472.29 ▲9.20
Media Library /wp-admin/upload.php1,385 ▼64.21 ▼0.0397.23 ▼0.9942.88 ▼4.30

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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, editor

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

The main PHP file in "Markdown Editor" ver. 0.1.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,269 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP56191,4552,655
CSS59522524
JavaScript6181468
Markdown110019
SVG1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity52.00
▷ Minimum class complexity14.00
▷ Maximum class complexity101.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods171
▷ Static methods21.17%
▷ Public methods15188.30%
▷ Protected methods179.94%
▷ Private methods31.75%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants1676.19%
▷ Class constants523.81%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin