94% parsedown-party

Code Review | Parsedown Party

WordPress plugin Parsedown Party scored 94% from 54 tests.

About plugin

  • Plugin page: parsedown-party
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 5.8.1
  • First release: Nov 27, 2017
  • Latest release: Dec 31, 2019
  • Number of updates: 21
  • Update frequency: every 36.4 days
  • Top authors: conner_bw (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 2,262 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.53MB] [CPU: ▼141.12ms] Passed 4 tests

Server-side resources used by Parsedown Party
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.37 ▲0.6537.31 ▲15.07
Dashboard /wp-admin3.60 ▲0.5439.53 ▼5.86
Posts /wp-admin/edit.php3.65 ▲0.5348.80 ▲7.89
Add New Post /wp-admin/post-new.php5.96 ▲0.5289.95 ▼569.93
Media Library /wp-admin/upload.php3.54 ▲0.5334.13 ▲3.41

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 163 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Parsedown Party
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.94 ▲0.3711.27 ▲2.7543.38 ▼8.54
Dashboard /wp-admin2,970 ▲375.88 ▼0.09138.26 ▼5.03112.50 ▼3.53
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0172.04 ▼2.6389.92 ▲0.68
Add New Post /wp-admin/post-new.php1,500 ▼10418.63 ▼0.11355.87 ▼34.01107.31 ▼8.79
Media Library /wp-admin/upload.php1,810 ▼05.05 ▲0.03143.04 ▼10.29115.12 ▼12.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 111× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/parsedown-party/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/parsedown-party/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/parsedown-party/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/parsedown-party/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/parsedown-party/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/parsedown-party/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/parsedown-party/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/parsedown-party/vendor/league/html-to-markdown/src/Converter/EmphasisConverter.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/parsedown-party/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/parsedown-party/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: parsedown, markdown

parsedown-party/parsedown-party.php Passed 13 tests

The principal PHP file in "Parsedown Party" v. 1.2.1 is loaded by WordPress automatically on each request
31 characters long description:
Markdown editing for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin6,309 lines of code in 155 files:
LanguageFilesBlank linesComment linesLines of code
PHP1281,1911,4215,076
Markdown122780566
JSON600556
HTML60089
YAML20614
XML1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.33
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces5
Interfaces4
Traits0
Classes118
▷ Abstract classes10.85%
▷ Concrete classes11799.15%
▷ Final classes10.85%
Methods296
▷ Static methods93.04%
▷ Public methods18161.15%
▷ Protected methods9532.09%
▷ Private methods206.76%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png32.83KB17.19KB▼ 47.65%