90% inline-markdown

Code Review | Inline Markdown

WordPress plugin Inline Markdown scored90%from 54 tests.

About plugin

  • Plugin page: inline-markdown
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.0
  • WordPress version: 6.3.1
  • First release: Dec 21, 2013
  • Latest release: Apr 16, 2016
  • Number of updates: 16
  • Update frequency: every 52.9 days
  • Top authors: rydurham (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,609 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.33ms] Passed 4 tests

Analyzing server-side resources used by Inline Markdown
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1438.21 ▼1.08
Dashboard /wp-admin3.45 ▲0.1445.32 ▼2.63
Posts /wp-admin/edit.php3.56 ▲0.2046.31 ▲1.38
Add New Post /wp-admin/post-new.php6.03 ▲0.1483.07 ▼15.00
Media Library /wp-admin/upload.php3.37 ▲0.1434.69 ▲1.52

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Inline Markdown
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.41 ▲0.011.80 ▼0.4847.17 ▲0.80
Dashboard /wp-admin2,206 ▲184.81 ▼0.11109.61 ▲0.7638.67 ▼4.72
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0339.63 ▼0.3935.19 ▲1.17
Add New Post /wp-admin/post-new.php1,514 ▼2817.81 ▼0.36669.28 ▲47.2155.87 ▼1.15
Media Library /wp-admin/upload.php1,382 ▼34.23 ▲0.0499.47 ▼1.8144.09 ▼2.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: markdown

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

"Inline Markdown" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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 plugin1,102 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23571511,102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity159.00
▷ Minimum class complexity159.00
▷ Maximum class complexity159.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods44
▷ Static methods12.27%
▷ Public methods715.91%
▷ Protected methods3681.82%
▷ Private methods12.27%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
No PNG files were detected