90% featherlight-html-minify

Code Review | Featherlight HTML Minify

WordPress plugin Featherlight HTML Minify scored 90% from 54 tests.

About plugin

  • Plugin page: featherlight-html...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 15, 2019
  • Latest release: Feb 18, 2019
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: dvdxgreen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 593 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.82ms] Passed 4 tests

Server-side resources used by Featherlight HTML Minify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.27 ▼6.63
Dashboard /wp-admin3.32 ▲0.0244.72 ▼4.40
Posts /wp-admin/edit.php3.37 ▲0.0248.67 ▲0.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.87 ▼8.66
Media Library /wp-admin/upload.php3.24 ▲0.0135.75 ▲2.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Featherlight HTML Minify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,757 ▲2214.74 ▲0.361.46 ▼0.2539.18 ▼5.68
Dashboard /wp-admin2,203 ▲125.81 ▲0.9494.08 ▼20.2036.94 ▼9.74
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0339.86 ▲3.3033.78 ▲3.84
Add New Post /wp-admin/post-new.php1,534 ▲123.32 ▲0.21664.35 ▲18.9154.10 ▼4.30
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0094.22 ▼1.6441.78 ▼1.04

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: html, minify, wordpress

featherlight-html-minify/featherlight-html-minify.php Passed 13 tests

The main file in "Featherlight HTML Minify" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
A featherlight plugin that Minifies HTML output for a faster loading website.

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 plugin124 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2210124

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods350.00%
▷ Protected methods350.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin