78% simple-privacy-helper

Code Review | Simple Privacy Helper

WordPress plugin Simple Privacy Helper scored78%from 54 tests.

About plugin

  • Plugin page: simple-privacy-he...
  • Plugin version: 1.4.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-4.9.7
  • WordPress version: 6.3.1
  • First release: May 23, 2018
  • Latest release: Jul 30, 2018
  • Number of updates: 40
  • Update frequency: every 1.7 days
  • Top authors: juvodesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,042 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼3.82ms] Passed 4 tests

Analyzing server-side resources used by Simple Privacy Helper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1940.54 ▼0.86
Dashboard /wp-admin3.47 ▲0.1747.02 ▼10.57
Posts /wp-admin/edit.php3.58 ▲0.2347.85 ▼0.96
Add New Post /wp-admin/post-new.php6.05 ▲0.1695.31 ▼2.90
Media Library /wp-admin/upload.php3.39 ▲0.1635.89 ▲3.70
Simple Privacy Helper /wp-admin/options-general.php?page=simple-simple-privacy-helper3.3640.42

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 12 new options
New WordPress options
privacy_comments
widget_recent-comments
privacy_registration
db_upgraded
privacy_ssl
theysaidso_admin_options
privacyHelperVersion
privacy_yt
can_compress_scripts
privacy_cf7
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Privacy Helper
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.17 ▼1.131.91 ▼0.1944.04 ▼4.80
Dashboard /wp-admin2,210 ▲224.85 ▼1.03107.38 ▼7.8037.28 ▼6.33
Posts /wp-admin/edit.php2,090 ▲12.03 ▲0.0139.29 ▲1.9834.26 ▼5.80
Add New Post /wp-admin/post-new.php1,537 ▲1723.30 ▲0.16676.69 ▲2.1051.64 ▼2.26
Media Library /wp-admin/upload.php1,392 ▲44.28 ▲0.02103.84 ▼3.4646.18 ▲0.41
Simple Privacy Helper /wp-admin/options-general.php?page=simple-simple-privacy-helper9802.0325.0628.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 12 options
    • privacyHelperVersion
    • can_compress_scripts
    • privacy_yt
    • widget_recent-posts
    • privacy_comments
    • theysaidso_admin_options
    • privacy_registration
    • privacy_cf7
    • privacy_ssl
    • db_upgraded
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-privacy-helper/index.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PrivacyHelper' not found in wp-content/plugins/simple-privacy-helper/extensions/privacy-yt.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrivacyHelper' not found in wp-content/plugins/simple-privacy-helper/extensions/privacy-comments.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrivacyHelper' not found in wp-content/plugins/simple-privacy-helper/extensions/privacy-ssl.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrivacyHelper' not found in wp-content/plugins/simple-privacy-helper/extensions/privacy-cf7.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrivacyHelper' not found in wp-content/plugins/simple-privacy-helper/extensions/privacy-registration.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • License uri: Please fix this invalid url: "www.gnu.org/licenses/gpl-2.0.html"
You can take inspiration from this readme.txt

simple-privacy-helper/index.php 85% from 13 tests

The principal PHP file in "Simple Privacy Helper" v. 1.4.3.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-privacy-helper.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin721 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7302124721

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.86
▷ Minimum class complexity5.00
▷ Maximum class complexity28.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods52
▷ Static methods11.92%
▷ Public methods3159.62%
▷ Protected methods11.92%
▷ Private methods2038.46%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin