84% hide-comments-are-closed-text

Code Review | Hide "Comments are closed" Text

WordPress plugin Hide "Comments are closed" Text scored84%from 54 tests.

About plugin

  • Plugin page: hide-comments-are...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Aug 12, 2016
  • Number of updates: 7
  • Update frequency: every 1.6 days
  • Top authors: hussainarsh (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /1,876 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.82ms] Passed 4 tests

Server-side resources used by Hide "Comments are closed" Text
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.04 ▼2.76
Dashboard /wp-admin3.31 ▼0.0347.22 ▼20.78
Posts /wp-admin/edit.php3.36 ▲0.0046.88 ▼0.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.44 ▼16.51
Media Library /wp-admin/upload.php3.23 ▲0.0034.66 ▼3.21

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide "Comments are closed" Text
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.35 ▼1.061.80 ▼0.1038.31 ▼0.62
Dashboard /wp-admin2,209 ▲184.86 ▼0.9399.12 ▼5.8738.65 ▲0.50
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0133.57 ▼7.2734.60 ▼1.00
Add New Post /wp-admin/post-new.php1,533 ▲1923.14 ▲5.39672.72 ▼36.6245.81 ▼5.75
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0191.98 ▼14.5839.97 ▼9.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hide-comments-are-closed-text/hide-comments-are-closed-text.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: hide comments are closed, comment, hide comments are closed text, how to remove comments are closed, closed...

hide-comments-are-closed-text/hide-comments-are-closed-text.php Passed 13 tests

This is the main PHP file of "Hide "Comments are closed" Text" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
This plugin hide the text "Comments are closed" in comment section of post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1288

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin