83% word-to-html

Code Review | Word to html

WordPress plugin Word to html scored83%from 54 tests.

About plugin

  • Plugin page: word-to-html
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2019
  • Latest release: Jul 19, 2019
  • Number of updates: 8
  • Update frequency: every 1.8 days
  • Top authors: wibergsweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /905 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.12ms] Passed 4 tests

An overview of server-side resources used by Word to html
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.86 ▲1.23
Dashboard /wp-admin3.40 ▲0.0645.06 ▼19.56
Posts /wp-admin/edit.php3.45 ▲0.0951.62 ▲1.61
Add New Post /wp-admin/post-new.php5.98 ▲0.0982.94 ▼19.75
Media Library /wp-admin/upload.php3.32 ▲0.0934.88 ▲2.28
Word to html /wp-admin/tools.php?page=word-to-html3.2930.95

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Word to html
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.32 ▼1.124.23 ▲2.3843.79 ▼1.53
Dashboard /wp-admin2,212 ▲214.88 ▼1.02109.55 ▲3.0340.01 ▼7.96
Posts /wp-admin/edit.php2,095 ▲92.01 ▼0.0238.86 ▲4.9336.59 ▲0.23
Add New Post /wp-admin/post-new.php1,533 ▼923.19 ▲5.19662.37 ▲25.4654.37 ▲4.92
Media Library /wp-admin/upload.php1,394 ▲64.18 ▼0.0092.87 ▼14.9641.83 ▼0.45
Word to html /wp-admin/tools.php?page=word-to-html9162.1721.8131.48

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/word-to-html/wordtohtml.php

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: convert, word into html, docx, word to html, external...

word-to-html/wordtohtml.php 77% from 13 tests

The principal PHP file in "Word to html" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("word-to-html.php" instead of "wordtohtml.php")
  • Domain Path: The domain path folder does not exist ("/lang")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis 97% from 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
No dangerous file extensions were detected947 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1218132946
CSS1101

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 157)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity165.00
▷ Minimum class complexity165.00
▷ Maximum class complexity165.00
Average method complexity19.22
▷ Minimum method complexity1.00
▷ Maximum method complexity157.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions0
▷ Named functions00.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
No PNG files were detected