84% wp2html

Code Review | WP2HTML

WordPress plugin WP2HTML scored84%from 54 tests.

About plugin

  • Plugin page: wp2html
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.7
  • WordPress version: 6.3.1
  • First release: Jun 11, 2021
  • Latest release: Jun 14, 2021
  • Number of updates: 11
  • Update frequency: every 0.4 days
  • Top authors: digitalacornjp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,558 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.08MB] [CPU: ▼10.20ms] Passed 4 tests

Server-side resources used by WP2HTML
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.60 ▼4.71
Dashboard /wp-admin3.40 ▲0.0544.10 ▼16.93
Posts /wp-admin/edit.php3.51 ▲0.1549.11 ▲2.10
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.97 ▼21.24
Media Library /wp-admin/upload.php3.32 ▲0.0936.21 ▲2.08

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP2HTML
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.54 ▼0.851.74 ▲0.0038.73 ▼4.91
Dashboard /wp-admin2,222 ▲314.84 ▼0.95113.42 ▲6.6242.09 ▼2.92
Posts /wp-admin/edit.php2,105 ▲131.99 ▲0.0035.30 ▼4.9531.83 ▲0.25
Add New Post /wp-admin/post-new.php1,546 ▲1323.40 ▲0.11670.52 ▼17.2261.95 ▲7.53
Media Library /wp-admin/upload.php1,401 ▲164.19 ▼0.01100.38 ▼8.2742.20 ▼8.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WP2HTML_PLUGIN_TITLE - assumed 'WP2HTML_PLUGIN_TITLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp2html/views/view_index.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp2html/views/view_index.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Options.), #2 (Options. (JAPANESE))
You can take inspiration from this readme.txt

wp2html/wp2html.php Passed 13 tests

This is the main PHP file of "WP2HTML" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
32 characters long description:
Make static HTMLs from WordPress

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 plugin668 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP599128597
CSS112071

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity27.33
▷ Minimum class complexity4.00
▷ Maximum class complexity49.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods520.00%
▷ Public methods1456.00%
▷ Protected methods00.00%
▷ Private methods1144.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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