10% wp2jekyll

Code Review | WordPress2Jekyll

WordPress plugin WordPress2Jekyll scored10%from 54 tests.

About plugin

  • Plugin page: wp2jekyll
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2016
  • Latest release: Jan 30, 2016
  • Number of updates: 36
  • Update frequency: every 0.3 days
  • Top authors: liam_bowers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,706 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wp2jekyll/inc/converters/Markdownify/Converter.php+347
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▼1.05MB] [CPU: ▼37.74ms] Passed 4 tests

This is a short check of server-side resources used by WordPress2Jekyll
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▼0.0041.71 ▼5.87
Dashboard /wp-admin3.02 ▼0.2825.54 ▼28.33
Posts /wp-admin/edit.php3.02 ▼0.8227.94 ▼27.33
Add New Post /wp-admin/post-new.php3.02 ▼2.8722.87 ▼88.19
Media Library /wp-admin/upload.php3.02 ▼0.2127.22 ▼7.11
Jekyll /wp-admin/tools.php?page=wordpress2jekyll-build3.0228.14
WordPress2Jekyll /wp-admin/options-general.php?page=wordpress2jekyll3.0225.84

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 18 new options
New WordPress options
jekyll_save_pages
widget_theysaidso_widget
jekyll_posts_directory
jekyll_path
jekyll_export_taxonomies
jekyll_assets_directory
jekyll_taxonomies
db_upgraded
jekyll_export_users
jekyll_export_post_meta
...

Browser metrics Passed 4 tests

Checking browser requirements for WordPress2Jekyll
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.26 ▼0.941.70 ▼0.7937.93 ▼8.93
Dashboard /wp-admin2,214 ▲294.85 ▼1.05101.52 ▼17.6941.62 ▼6.32
Posts /wp-admin/edit.php2,097 ▲82.02 ▼0.0134.10 ▼5.5433.22 ▼5.08
Add New Post /wp-admin/post-new.php1,543 ▲2423.05 ▼0.30695.10 ▲0.1655.11 ▲2.82
Media Library /wp-admin/upload.php1,396 ▲84.22 ▲0.02109.20 ▲0.9547.22 ▲4.18
Jekyll /wp-admin/tools.php?page=wordpress2jekyll-build7702.1825.7925.65
WordPress2Jekyll /wp-admin/options-general.php?page=wordpress2jekyll9522.0322.7329.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wordpress2jekyll
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Markdownify\\Converter' not found in wp-content/plugins/wp2jekyll/inc/converters/Markdownify/ConverterExtra.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: github, yaml, blog, flat, jekyll...

wp2jekyll/wordpress2jekyll.php 85% from 13 tests

The entry point to "WordPress2Jekyll" version 0.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp2jekyll.php" instead of "wordpress2jekyll.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,530 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP177461,1883,530

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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.46
Average class complexity49.33
▷ Minimum class complexity1.00
▷ Maximum class complexity254.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods203
▷ Static methods104.93%
▷ Public methods6733.00%
▷ Protected methods7335.96%
▷ Private methods6331.03%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin