84% blog-to-html

Code Review | Blog To HTML

WordPress plugin Blog To HTML scored84%from 54 tests.

About plugin

  • Plugin page: blog-to-html
  • Plugin version: 1.91
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Sep 27, 2017
  • Latest release: Mar 7, 2020
  • Number of updates: 26
  • Update frequency: every 34.4 days
  • Top authors: rhellewell@gmail.com (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /3,068 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
Installer ran successfully

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

This is a short check of server-side resources used by Blog To HTML
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0834.78 ▼4.24
Dashboard /wp-admin3.38 ▲0.0742.67 ▼7.42
Posts /wp-admin/edit.php3.49 ▲0.1349.26 ▼3.29
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.77 ▼2.90
Media Library /wp-admin/upload.php3.30 ▲0.0735.85 ▲2.91
Blog to HTML Info/Usage /wp-admin/options-general.php?page=blogtohtml_settings3.2733.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Blog To HTML
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5214.73 ▲0.061.61 ▼0.0441.41 ▼0.57
Dashboard /wp-admin2,207 ▲184.85 ▼1.09107.11 ▼6.7740.98 ▼0.99
Posts /wp-admin/edit.php2,087 ▲12.01 ▼0.0038.97 ▲2.7231.04 ▼5.00
Add New Post /wp-admin/post-new.php1,530 ▲1623.42 ▲5.90598.32 ▼45.8546.11 ▼6.89
Media Library /wp-admin/upload.php1,389 ▲14.25 ▲0.0299.63 ▲4.4442.43 ▼1.96
Blog to HTML Info/Usage /wp-admin/options-general.php?page=blogtohtml_settings1,0672.0222.2644.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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: Call to undefined function get_bloginfo() in wp-content/plugins/blog-to-html/blog_to_html.php:599

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: html, ebook, export

blog-to-html/blog_to_html.php 92% from 13 tests

This is the main PHP file of "Blog To HTML" version 1.91, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("blog-to-html.php" instead of "blog_to_html.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected577 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP172168486
HTML121082
XML1009

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.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
3 PNG files occupy 0.31MB with 0.28MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png69.13KB4.21KB▼ 93.91%
assets/icon-256x256.png94.51KB8.48KB▼ 91.03%
assets/banner-772x250.png151.91KB18.91KB▼ 87.55%