84% inline-html-css-javascript-minifier

Code Review | Inline HTML, CSS & Javascript Minifier

WordPress plugin Inline HTML, CSS & Javascript Minifier scored84%from 54 tests.

About plugin

  • Plugin page: inline-html-css-j...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.4-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: Sep 18, 2018
  • Number of updates: 22
  • Update frequency: every 11.5 days
  • Top authors: willroy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,808 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.98ms] Passed 4 tests

An overview of server-side resources used by Inline HTML, CSS & Javascript Minifier
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.36 ▼2.56
Dashboard /wp-admin3.35 ▲0.0546.24 ▼2.16
Posts /wp-admin/edit.php3.46 ▲0.1151.92 ▲4.03
Add New Post /wp-admin/post-new.php5.93 ▲0.0590.71 ▼0.00
Media Library /wp-admin/upload.php3.27 ▲0.0538.28 ▲0.78
Inline HTML, CSS & Javascript Minifier /wp-admin/options-general.php?page=inline-html-css-javascript-minifier-settings3.2433.34

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
inline_hcjm_options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Inline HTML, CSS & Javascript Minifier
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,653 ▼13314.23 ▼0.301.96 ▼0.3642.47 ▼0.17
Dashboard /wp-admin2,193 ▲165.54 ▼0.0687.51 ▼9.5240.81 ▼0.70
Posts /wp-admin/edit.php2,104 ▲11.99 ▲0.0239.50 ▲2.4434.36 ▲2.17
Add New Post /wp-admin/post-new.php1,529 ▼823.14 ▲4.88675.93 ▲62.0961.73 ▲1.96
Media Library /wp-admin/upload.php1,407 ▲104.15 ▼0.0898.73 ▼5.9146.31 ▼1.14
Inline HTML, CSS & Javascript Minifier /wp-admin/options-general.php?page=inline-html-css-javascript-minifier-settings8062.0025.8728.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • inline_hcjm_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/inline-html-css-javascript-minifier/inline-html-css-javascript-minifier.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
8 plugin tags: minify, compress, html, javascript, performance...

inline-html-css-javascript-minifier/inline-html-css-javascript-minifier.php Passed 13 tests

The primary PHP file in "Inline HTML, CSS & Javascript Minifier" version 1.0.2 is used by WordPress to initiate all plugin functionality
53 characters long description:
Minify all front end code (HTML, CSS and Javascript).

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
No dangerous file extensions were detected230 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24066230

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions758.33%
▷ Anonymous functions541.67%
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