84% external-markdown

Code Review | External Markdown

WordPress plugin External Markdown scored84%from 54 tests.

About plugin

  • Plugin page: external-markdown
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Feb 5, 2021
  • Latest release: Aug 29, 2023
  • Number of updates: 6
  • Update frequency: every 156.0 days
  • Top authors: pReya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /633 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.01MB] [CPU: ▼5.93ms] Passed 4 tests

Server-side resources used by External Markdown
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.86 ▼8.79
Dashboard /wp-admin3.32 ▲0.0147.12 ▼4.32
Posts /wp-admin/edit.php3.37 ▲0.0155.30 ▲3.43
Add New Post /wp-admin/post-new.php5.90 ▲0.01100.79 ▼12.99
Media Library /wp-admin/upload.php3.24 ▲0.0136.97 ▲2.40

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by External Markdown
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.25 ▼0.101.67 ▼0.3541.85 ▲1.84
Dashboard /wp-admin2,195 ▲155.62 ▼0.0288.81 ▼2.7538.76 ▼0.12
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0338.61 ▲1.7335.55 ▲0.31
Add New Post /wp-admin/post-new.php1,528 ▲122.95 ▲0.17674.81 ▼15.2952.25 ▼13.71
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.1197.02 ▼9.5444.36 ▼3.18

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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
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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/external-markdown/external-markdown.php:72

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === external-markdown === )
The official readme.txt might help

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

The principal PHP file in "External Markdown" v. 0.0.1 is loaded by WordPress automatically on each request
84 characters long description:
Include and parse markdown files from external web sources like GitHub, GitLab, etc.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected75 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131346
Markdown19029

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin