84% jetpack-markdown-support

Code Review | Jetpack Markdown Support

WordPress plugin Jetpack Markdown Support scored84%from 54 tests.

About plugin

  • Plugin page: jetpack-markdown-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: May 12, 2014
  • Number of updates: 4
  • Update frequency: every 2.8 days
  • Top authors: Kopepasah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,011 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Jetpack Markdown Support
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.95 ▲2.98
Dashboard /wp-admin3.32 ▼0.0352.01 ▼18.97
Posts /wp-admin/edit.php3.37 ▲0.0152.46 ▼2.25
Add New Post /wp-admin/post-new.php5.90 ▲0.01101.94 ▲6.73
Media Library /wp-admin/upload.php3.24 ▲0.0142.29 ▲5.12

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Jetpack Markdown Support
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.50 ▲0.321.64 ▼0.1443.71 ▲0.12
Dashboard /wp-admin2,224 ▲245.79 ▼0.07120.12 ▲14.8144.55 ▲0.90
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0641.04 ▲3.8742.24 ▲7.23
Add New Post /wp-admin/post-new.php1,535 ▼523.57 ▲0.39739.89 ▲95.9054.56 ▼5.77
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.01120.89 ▲1.9449.33 ▼1.76

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

Smoke tests 75% from 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)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jetpack-markdown-support/jetpack-markdown-support.php:129

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === jetpack-markdown-support === )
The official readme.txt is a good inspiration

jetpack-markdown-support/jetpack-markdown-support.php Passed 13 tests

"Jetpack Markdown Support" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
A simple plugin which adds Jetpack's Markdown Module support to Custom Post Types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin66 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1176943
PO File12220
Markdown1203

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

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