89% markdownbar

Code Review | MarkdownBar

WordPress plugin MarkdownBar scored89%from 54 tests.

About plugin

  • Plugin page: markdownbar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2
  • WordPress version: 6.3.1
  • First release: Feb 24, 2015
  • Latest release: Apr 21, 2015
  • Number of updates: 9
  • Update frequency: every 6.2 days
  • Top authors: crimson090 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,140 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.01MB] [CPU: ▼5.41ms] Passed 4 tests

This is a short check of server-side resources used by MarkdownBar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.94 ▲2.62
Dashboard /wp-admin3.33 ▼0.0246.77 ▼12.89
Posts /wp-admin/edit.php3.38 ▲0.0243.48 ▲2.11
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.93 ▼13.48
Media Library /wp-admin/upload.php3.26 ▲0.0238.48 ▲4.28

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
markdownbar_version

Browser metrics Passed 4 tests

A check of browser resources used by MarkdownBar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,618 ▼12814.25 ▼0.121.64 ▲0.1245.64 ▲5.69
Dashboard /wp-admin2,024 ▼1565.47 ▼0.1481.30 ▼5.8437.41 ▼6.09
Posts /wp-admin/edit.php2,105 ▲22.02 ▲0.0234.14 ▼0.5736.75 ▲3.42
Add New Post /wp-admin/post-new.php1,531 ▲323.54 ▲0.43687.52 ▲2.7150.42 ▼3.74
Media Library /wp-admin/upload.php1,405 ▲84.20 ▼0.0496.35 ▼3.6941.37 ▼2.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • markdownbar_version
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (This shows the text editor with Markdown buttons)
You can take inspiration from this readme.txt

markdownbar/markdownbar.php 85% from 13 tests

The main file in "MarkdownBar" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/lang/" does not exist
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.9" instead of "4.0")

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
Everything looks great! No dangerous files found in this plugin114 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP337134114

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png74.86KB20.62KB▼ 72.46%