83% wp-hypermd

Code Review | WP HyperMD

WordPress plugin WP HyperMD scored83%from 54 tests.

About plugin

  • Plugin page: wp-hypermd
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.0.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2018
  • Latest release: May 19, 2019
  • Number of updates: 5
  • Update frequency: every 59.8 days
  • Top authors: jaxsonwang (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,346 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
Install script ran successfully

Server metrics [RAM: ▼0.23MB] [CPU: ▼19.91ms] Passed 4 tests

An overview of server-side resources used by WP HyperMD
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4439.72 ▲3.96
Dashboard /wp-admin3.79 ▲0.4548.50 ▼7.70
Posts /wp-admin/edit.php3.84 ▲0.4947.70 ▲0.86
Add New Post /wp-admin/post-new.php3.64 ▼2.2528.63 ▼76.74
Media Library /wp-admin/upload.php3.65 ▲0.4243.56 ▲9.78
WP HyperMD /wp-admin/plugins.php?page=wp-hypermd-settings3.6236.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
wp-hypermd-settings

Browser metrics Passed 4 tests

Checking browser requirements for WP HyperMD
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲21517.28 ▲2.9218.46 ▲16.8343.34 ▲0.91
Dashboard /wp-admin2,228 ▲456.70 ▲1.77123.92 ▲14.6038.20 ▼4.47
Posts /wp-admin/edit.php2,138 ▲463.98 ▲1.9868.52 ▲27.7936.33 ▼0.35
Add New Post /wp-admin/post-new.php2,812 ▲1,2905.83 ▼17.42140.81 ▼475.0556.54 ▲5.45
Media Library /wp-admin/upload.php1,448 ▲665.54 ▲1.32116.42 ▲20.9942.51 ▲0.75
WP HyperMD /wp-admin/plugins.php?page=wp-hypermd-settings1,6374.4872.8541.69

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/wp-hypermd/vendor/michelf/php-markdown/Michelf/Markdown.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HyperMDRoot\\plugins_url() in wp-content/plugins/wp-hypermd/wp-hypermd.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/wp-hypermd/uninstall.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Michelf\\MarkdownExtra' not found in wp-content/plugins/wp-hypermd/src/App/WPMarkdownParser.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/wp-hypermd/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Contributors: No tags were detected
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

wp-hypermd/wp-hypermd.php 92% from 13 tests

The main PHP script in "WP HyperMD" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
  • 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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,438 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP321,0272,4474,436
JavaScript2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.54
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces8
Interfaces1
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods270
▷ Static methods82.96%
▷ Public methods15356.67%
▷ Protected methods10940.37%
▷ Private methods82.96%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.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