84% more-privacy-for-comments

Code Review | More privacy for comments

WordPress plugin More privacy for comments scored84%from 54 tests.

About plugin

  • Plugin page: more-privacy-for-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: May 30, 2018
  • Latest release: May 31, 2018
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: floeff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by More privacy for comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.60 ▼0.97
Dashboard /wp-admin3.31 ▲0.0149.11 ▼2.12
Posts /wp-admin/edit.php3.36 ▲0.0146.25 ▼6.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.16 ▼15.84
Media Library /wp-admin/upload.php3.23 ▲0.0138.77 ▼0.00

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for More privacy for comments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▼0.021.69 ▼0.1847.50 ▲3.56
Dashboard /wp-admin2,195 ▲185.63 ▲0.0195.82 ▲4.8543.40 ▼0.21
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0134.35 ▼1.4235.90 ▲0.16
Add New Post /wp-admin/post-new.php1,528 ▲223.22 ▲0.10661.78 ▲14.5356.44 ▲0.31
Media Library /wp-admin/upload.php1,403 ▼04.32 ▼0.1198.80 ▼6.3444.09 ▼1.79

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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 50% from 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
Please 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/more-privacy-for-comments/more-privacy-for-comments.php:32

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: comment, dsgvo, anonymity, privacy, anonymous...

more-privacy-for-comments/more-privacy-for-comments.php Passed 13 tests

The main PHP script in "More privacy for comments" version 1.0.0 is automatically included on every request by WordPress
107 characters long description:
Hides e-mail and URL fields for new blog comments and omits saving of commenter IP address for more privacy

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151119

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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 are no PNG files in this plugin