90% vg-remove-html-comments

Code Review | VG Remove html comment

WordPress plugin VG Remove html comment scored 90% from 54 tests.

About plugin

  • Plugin page: vg-remove-html-co...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 3, 2017
  • Latest release: Jun 11, 2018
  • Number of updates: 5
  • Update frequency: every 74.8 days
  • Top authors: vishalsurajpalgupta (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 1,306 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.06MB] [CPU: ▼6.16ms] Passed 4 tests

This is a short check of server-side resources used by VG Remove html comment
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.54 ▼3.47
Dashboard /wp-admin3.38 ▲0.0744.91 ▼4.88
Posts /wp-admin/edit.php3.41 ▲0.0545.50 ▼3.62
Add New Post /wp-admin/post-new.php6.05 ▲0.1685.93 ▼11.31
Media Library /wp-admin/upload.php3.31 ▲0.0831.28 ▼4.83

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by VG Remove html comment
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,779 ▲4413.66 ▼1.091.62 ▼0.4646.81 ▼5.78
Dashboard /wp-admin2,197 ▲55.90 ▲0.92102.42 ▼7.2741.83 ▼4.12
Posts /wp-admin/edit.php2,081 ▼82.00 ▼0.1641.55 ▲2.5036.49 ▲1.91
Add New Post /wp-admin/post-new.php1,526 ▼1122.95 ▼0.50627.73 ▼34.4158.13 ▲2.38
Media Library /wp-admin/upload.php1,385 ▼64.18 ▼0.0397.89 ▼8.0643.96 ▲0.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: comment, html-comment-remove, comment-remove

vg-remove-html-comments/vg-remove-html-comment.php 92% from 13 tests

The primary PHP file in "VG Remove html comment" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("vg-remove-html-comments.php" instead of "vg-remove-html-comment.php")

Code Analysis Passed 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
There were no executable files found in this plugin16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171116

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin