78% wp-yt-markdown

Code Review | WP Yt Markdown

WordPress plugin WP Yt Markdown scored78%from 54 tests.

About plugin

  • Plugin page: wp-yt-markdown
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Feb 28, 2016
  • Latest release: Apr 3, 2016
  • Number of updates: 5
  • Update frequency: every 7.2 days
  • Top authors: yutuo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.87ms] Passed 4 tests

This is a short check of server-side resources used by WP Yt Markdown
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0737.12 ▼7.66
Dashboard /wp-admin3.38 ▲0.0744.85 ▼3.36
Posts /wp-admin/edit.php3.49 ▲0.1347.12 ▲0.18
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.77 ▼16.63
Media Library /wp-admin/upload.php3.30 ▲0.0735.20 ▲3.23
Wp Yt Markdown /wp-admin/options-general.php?page=wpYtMarkdown3.2730.91

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

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

Browser metrics Passed 4 tests

WP Yt Markdown: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲20816.49 ▲2.175.08 ▲2.8938.97 ▼7.39
Dashboard /wp-admin2,228 ▲436.99 ▲1.14141.77 ▲34.6941.14 ▼3.74
Posts /wp-admin/edit.php2,114 ▲254.02 ▲2.0347.26 ▲9.1257.26 ▲21.12
Add New Post /wp-admin/post-new.php6,468 ▲4,92427.17 ▲8.69849.32 ▲180.3646.47 ▼18.96
Media Library /wp-admin/upload.php1,410 ▲195.86 ▲1.67107.77 ▲2.5740.16 ▼6.59
Wp Yt Markdown /wp-admin/options-general.php?page=wpYtMarkdown1,2964.0137.3527.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wpYtMarkdown
    • > Notice in wp-content/plugins/wp-yt-markdown/inc/wp_yt_markdown_setting.php+4
    Undefined index: wp_ymd_options

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wpYtMarkdown
    • > Network (severe)
    wp-content/plugins/wp-yt-markdown/mdeditoryt/lib/highlightjs/styles/defualt.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-yt-markdown === )
The official readme.txt is a good inspiration

wp-yt-markdown/wp-yt-markdown.php 92% from 13 tests

The main file in "WP Yt Markdown" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
No dangerous file extensions were detected74,314 lines of code in 474 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2099,0367,46054,330
HTML1232,446812,920
CSS1351,2757326,612
PHP33791319
Markdown338078
PO File1192455

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
mdeditoryt/lib/highlightjs/styles/brown-papersq.png17.77KB9.92KB▼ 44.16%
mdeditoryt/lib/highlightjs/styles/school-book.png0.47KB0.34KB▼ 27.37%