90% ws-comments-hider

Code Review | WS Comments Hider

WordPress plugin WS Comments Hider scored90%from 54 tests.

About plugin

  • Plugin page: ws-comments-hider
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0.0
  • WordPress version: 6.3.1
  • First release: Apr 3, 2019
  • Latest release: Jun 8, 2022
  • Number of updates: 7
  • Update frequency: every 166.0 days
  • Top authors: silvermuru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /690 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by WS Comments Hider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.90 ▲2.08
Dashboard /wp-admin3.34 ▼0.0150.28 ▼20.50
Posts /wp-admin/edit.php3.35 ▼0.0047.95 ▼3.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.93 ▼28.88
Media Library /wp-admin/upload.php3.25 ▲0.0242.05 ▲7.53
All Comments /wp-admin/edit-comments.php3.3139.37

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WS Comments Hider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3413.18 ▼1.005.37 ▲3.5242.61 ▲0.95
Dashboard /wp-admin2,190 ▼135.86 ▲0.9597.87 ▼11.7439.22 ▼2.59
Posts /wp-admin/edit.php1,922 ▼1812.04 ▼0.0136.26 ▼19.6733.63 ▼14.22
Add New Post /wp-admin/post-new.php1,516 ▼1723.28 ▼0.18661.77 ▲6.0650.58 ▼0.25
Media Library /wp-admin/upload.php1,366 ▼344.22 ▼0.01112.70 ▼0.4250.43 ▲2.63
All Comments /wp-admin/edit-comments.php1,7692.2837.1736.06

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: comments, admin, access, closed, administration

ws-comments-hider/ws-comments-hider.php Passed 13 tests

The main PHP script in "WS Comments Hider" version 1.0.1 is automatically included on every request by WordPress
51 characters long description:
Hide comments functionality in frontend and backend

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected119 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3141167
PO File191137
Markdown114015

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin