84% remove-date-and-gravatar-under-comment

Code Review | Comment Date and Gravatar remover

WordPress plugin Comment Date and Gravatar remover scored84%from 54 tests.

About plugin

  • Plugin page: remove-date-and-g...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: May 30, 2016
  • Latest release: Mar 19, 2018
  • Number of updates: 10
  • Update frequency: every 66.1 days
  • Top authors: mynamevenu24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,273 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.44ms] Passed 4 tests

An overview of server-side resources used by Comment Date and Gravatar remover
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0624.27 ▼19.13
Dashboard /wp-admin3.32 ▲0.0247.89 ▼3.63
Posts /wp-admin/edit.php3.37 ▲0.0249.05 ▼0.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.37 ▼10.84
Media Library /wp-admin/upload.php3.24 ▲0.0237.44 ▲2.68
Remove comment date & gravatar /wp-admin/options-general.php?page=hide-c-d-g3.2138.02

Server storage [IO: ▲0.05MB] [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: 5 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
hcdg_remove_date
db_upgraded
hcdg_remove_gravatar
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Comment Date and Gravatar remover
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲1314.34 ▼0.001.83 ▼0.7341.60 ▼3.38
Dashboard /wp-admin2,198 ▲185.57 ▼0.0384.78 ▼8.8136.67 ▼2.86
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0439.87 ▼0.0934.37 ▼4.08
Add New Post /wp-admin/post-new.php1,531 ▲323.07 ▼0.09641.08 ▲20.1860.61 ▲1.01
Media Library /wp-admin/upload.php1,397 ▼34.28 ▲0.04103.30 ▼2.9045.10 ▲2.80
Remove comment date & gravatar /wp-admin/options-general.php?page=hide-c-d-g8601.9925.6836.97

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • hcdg_remove_gravatar
    • db_upgraded
    • hcdg_remove_date
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-date-and-gravatar-under-comment/remove-comment-date-gravatar.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/remove-date-and-gravatar-under-comment/admin-checkbox-settings.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Settings of Gravatar and date remover plugin) image missing
You can take inspiration from this readme.txt

remove-date-and-gravatar-under-comment/remove-comment-date-gravatar.php 92% from 13 tests

This is the main PHP file of "Comment Date and Gravatar remover" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("remove-date-and-gravatar-under-comment.php" instead of "remove-comment-date-gravatar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin143 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24022101
CSS13042

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png43.54KB20.67KB▼ 52.52%