84% markdown-highlighter

Code Review | Markdown Highlighter

WordPress plugin Markdown Highlighter scored84%from 54 tests.

About plugin

  • Plugin page: markdown-highlighter
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5
  • WordPress version: 6.3.1
  • First release: May 28, 2016
  • Latest release: May 28, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: sohelamin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.49ms] Passed 4 tests

This is a short check of server-side resources used by Markdown Highlighter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.80 ▼3.45
Dashboard /wp-admin3.32 ▼0.0347.88 ▼24.14
Posts /wp-admin/edit.php3.43 ▲0.0847.03 ▼9.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.44 ▼13.24
Media Library /wp-admin/upload.php3.24 ▲0.0134.78 ▼3.56

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Markdown Highlighter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.36 ▼1.295.09 ▲3.2240.99 ▼3.11
Dashboard /wp-admin2,224 ▲215.90 ▲0.05103.24 ▲2.2738.91 ▼6.12
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0335.83 ▼6.5433.62 ▼1.72
Add New Post /wp-admin/post-new.php1,546 ▲1523.18 ▼0.10688.29 ▲43.0358.28 ▼3.47
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0697.70 ▼3.8646.95 ▲2.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Parsedown' not found in wp-content/plugins/markdown-highlighter/parsedown/ParsedownExtra.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === markdown-highlighter === )
The official readme.txt is a good inspiration

markdown-highlighter/markdown-highlighter.php Passed 13 tests

Analyzing the main PHP file in "Markdown Highlighter" version 0.1
33 characters long description:
Parse and Highlight The Markdown.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,486 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP34792001,478
CSS3004
JavaScript1012
Markdown1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity66.33
▷ Minimum class complexity2.00
▷ Maximum class complexity159.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods70
▷ Static methods22.86%
▷ Public methods1420.00%
▷ Protected methods5680.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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 are no PNG files in this plugin