84% datareporter-webcare

Code Review | Datareporter Webcare

WordPress plugin Datareporter Webcare scored84%from 54 tests.

About plugin

  • Plugin page: datareporter-webcare
  • Plugin version: 2.1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 27, 2019
  • Latest release: Oct 13, 2023
  • Number of updates: 14
  • Update frequency: every 118.7 days
  • Top authors: Lemontec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /3,555 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Datareporter Webcare
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.00 ▲0.69
Dashboard /wp-admin3.33 ▼0.0245.79 ▼16.10
Posts /wp-admin/edit.php3.38 ▲0.0247.49 ▲1.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.14 ▼8.82
Media Library /wp-admin/upload.php3.25 ▲0.0235.41 ▲2.70

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Datareporter Webcare
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.002.32 ▲0.5936.84 ▼2.97
Dashboard /wp-admin2,208 ▲315.54 ▼0.1480.85 ▼17.2537.96 ▼4.68
Posts /wp-admin/edit.php2,116 ▲161.99 ▲0.0435.07 ▼2.8434.80 ▼0.19
Add New Post /wp-admin/post-new.php1,539 ▲1323.85 ▲0.93664.66 ▼60.4756.76 ▼4.96
Media Library /wp-admin/upload.php1,413 ▲134.22 ▲0.06103.29 ▲4.4844.49 ▼0.58

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 were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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 no errors were found, this is by no means 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
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/datareporter-webcare/datareporter-webcare.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/datareporter-webcare/trunk/datareporter-webcare.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires php: Invalid plugin version format
You can look at the official readme.txt

datareporter-webcare/datareporter-webcare.php Passed 13 tests

The principal PHP file in "Datareporter Webcare" v. 2.1.2 is loaded by WordPress automatically on each request
96 characters long description:
WordPress module to embed DataReporter WebCare elements (imprint, privacy notice, cookie banner)

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
There were no executable files found in this plugin116 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12322116

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.14
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected