90% webappdesign-gdpr-comments

Code Review | GDPR Comments

WordPress plugin GDPR Comments scored90%from 54 tests.

About plugin

  • Plugin page: webappdesign-gdpr...
  • Plugin version: 1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.7-5.4
  • WordPress version: 6.3.1
  • First release: Aug 6, 2018
  • Latest release: Apr 3, 2020
  • Number of updates: 15
  • Update frequency: every 40.4 days
  • Top authors: webappdesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,856 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.10ms] Passed 4 tests

Analyzing server-side resources used by GDPR Comments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.70 ▲7.15
Dashboard /wp-admin3.36 ▲0.0546.99 ▼1.64
Posts /wp-admin/edit.php3.41 ▲0.0545.94 ▼1.27
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.83 ▼16.79
Media Library /wp-admin/upload.php3.28 ▲0.0535.49 ▲3.32

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

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

Browser metrics Passed 4 tests

Checking browser requirements for GDPR Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.23 ▲0.041.80 ▲0.2344.15 ▲4.79
Dashboard /wp-admin2,211 ▲345.57 ▼0.0882.29 ▼4.6739.07 ▼2.30
Posts /wp-admin/edit.php2,116 ▲161.97 ▼0.0534.26 ▼2.7934.99 ▼3.18
Add New Post /wp-admin/post-new.php1,542 ▲1423.26 ▲0.42665.77 ▲24.1847.71 ▼8.12
Media Library /wp-admin/upload.php1,419 ▲254.21 ▲0.0195.97 ▼1.3045.19 ▼2.08

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
2 plugin tags: gdpr, comments

webappdesign-gdpr-comments/webappdesign-gdpr-comments.php 92% from 13 tests

"GDPR Comments" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected140 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11526140

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected