89% markdown-display-by-logic-hop

Code Review | Markdown Display by Logic Hop

WordPress plugin Markdown Display by Logic Hop scored89%from 54 tests.

About plugin

  • Plugin page: markdown-display-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 3, 2019
  • Latest release: Feb 3, 2019
  • Number of updates: 2
  • Update frequency: every 5.5 days
  • Top authors: logichop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /489 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Markdown Display by Logic Hop
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.50 ▼1.12
Dashboard /wp-admin3.32 ▼0.0348.72 ▼10.10
Posts /wp-admin/edit.php3.37 ▲0.0147.21 ▲1.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.80 ▼15.86
Media Library /wp-admin/upload.php3.24 ▲0.0131.79 ▼3.72

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Markdown Display by Logic Hop
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.441.87 ▲0.0244.88 ▲1.33
Dashboard /wp-admin2,209 ▲215.98 ▲0.9196.74 ▼2.9835.54 ▼7.00
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0533.17 ▼5.2132.94 ▼4.15
Add New Post /wp-admin/post-new.php6,245 ▲4,71726.05 ▲7.65964.40 ▲357.9667.77 ▲11.30
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0395.20 ▼4.4643.04 ▼1.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: logic hop, posting, publishing, markdown, post

markdown-display-by-logic-hop/logic-hop-markdown.php 92% from 13 tests

This is the main PHP file of "Markdown Display by Logic Hop" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("markdown-display-by-logic-hop.php" instead of "logic-hop-markdown.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,290 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34263441,290

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity230.00
▷ Minimum class complexity230.00
▷ Maximum class complexity230.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods67
▷ Static methods45.97%
▷ Public methods913.43%
▷ Protected methods5886.57%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 1.09MB with 0.70MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png509.34KB208.71KB▼ 59.02%
screenshot-2.png606.24KB181.81KB▼ 70.01%