84% load-html-files

Code Review | Load HTML Files

WordPress plugin Load HTML Files scored 84% from 54 tests.

About plugin

  • Plugin page: load-html-files
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2023
  • Latest release: Aug 16, 2023
  • Number of updates: 6
  • Update frequency: every 25.7 days
  • Top authors: fullworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 768 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.44MB] [CPU: ▲1.95ms] Passed 4 tests

Server-side resources used by Load HTML Files
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4749.23 ▲7.26
Dashboard /wp-admin3.78 ▲0.4890.73 ▲41.30
Posts /wp-admin/edit.php3.81 ▲0.4655.12 ▲0.72
Add New Post /wp-admin/post-new.php6.33 ▲0.4494.67 ▼12.52
Media Library /wp-admin/upload.php3.62 ▲0.3945.71 ▲12.32
HTML files Categories /wp-admin/edit-tags.php?taxonomy=html_files_category&post_type=html_files3.6243.56
Add New /wp-admin/post-new.php?post_type=html_files3.7553.51
All HTML files /wp-admin/edit.php?post_type=html_files3.7345.54
Settings /wp-admin/edit.php?post_type=html_files&page=load-html-files-settings3.6041.85

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
load-html-files_review
load-html-files_donate

Browser metrics Passed 4 tests

Load HTML Files: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11513.25 ▼1.392.07 ▲0.0640.01 ▼4.04
Dashboard /wp-admin2,250 ▲655.87 ▲0.00102.05 ▼9.3440.24 ▼2.05
Posts /wp-admin/edit.php2,128 ▲362.05 ▲0.0739.48 ▼0.5735.15 ▼1.20
Add New Post /wp-admin/post-new.php1,556 ▲2318.43 ▼4.77616.59 ▼66.5562.75 ▲8.77
Media Library /wp-admin/upload.php1,427 ▲364.20 ▲0.0295.06 ▼8.7445.12 ▼1.37
HTML files Categories /wp-admin/edit-tags.php?taxonomy=html_files_category&post_type=html_files1,2982.1427.0128.68
Add New /wp-admin/post-new.php?post_type=html_files1,7622.7654.9941.22
All HTML files /wp-admin/edit.php?post_type=html_files1,1091.9330.5829.56
Settings /wp-admin/edit.php?post_type=html_files&page=load-html-files-settings1,3772.3940.2635.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Load_HTML_Files\\Admin\\Admin_Pages' not found in wp-content/plugins/load-html-files/admin/class-admin-settings.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: import html, sailwave import, html importer, load html files, html files...

load-html-files/load-html-files.php Passed 13 tests

Analyzing the main PHP file in "Load HTML Files" version 1.0.0
32 characters long description:
Autocreate posts from HTML files

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,201 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP233707441,902
PO File24448176
JSON10046
JavaScript17441
SVG11136
CSS1210

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods116
▷ Static methods2723.28%
▷ Public methods10287.93%
▷ Protected methods00.00%
▷ Private methods1412.07%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/alanef/plugindonation_lib/images/QRcodes/BMAC.png22.62KB2.44KB▼ 89.23%
vendor/alanef/plugindonation_lib/images/QRcodes/BCH.png7.86KB1.87KB▼ 76.24%
vendor/alanef/plugindonation_lib/images/QRcodes/ETH.png7.39KB1.74KB▼ 76.47%
vendor/alanef/plugindonation_lib/images/logos/PPcards.png5.42KB5.35KB▼ 1.15%
vendor/alanef/plugindonation_lib/images/logos/DOGE.png35.94KB14.35KB▼ 60.06%