84% subscribe-privacy-jetpack

Code Review | Subscribe privacy for Jetpack

WordPress plugin Subscribe privacy for Jetpack scored84%from 54 tests.

About plugin

  • Plugin page: subscribe-privacy...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.9
  • WordPress version: 6.3.1
  • First release: Apr 14, 2022
  • Latest release: Apr 15, 2022
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: alex6m (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,080 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 gracefully, with no errors

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

Analyzing server-side resources used by Subscribe privacy for Jetpack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.79 ▲5.55
Dashboard /wp-admin3.31 ▲0.0147.17 ▼5.24
Posts /wp-admin/edit.php3.36 ▲0.0146.50 ▼2.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.92 ▼10.17
Media Library /wp-admin/upload.php3.24 ▲0.0136.40 ▲2.95

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Subscribe privacy for Jetpack: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.312.01 ▲0.1442.14 ▼3.04
Dashboard /wp-admin2,195 ▲215.55 ▼0.0884.69 ▼10.4840.62 ▼2.61
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0135.85 ▼1.3338.08 ▲4.89
Add New Post /wp-admin/post-new.php1,526 ▼023.75 ▲0.26668.23 ▼27.9067.49 ▲10.89
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.0295.67 ▼9.1943.54 ▼0.17

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/subscribe-privacy-jetpack/subscribe-privacy-jetpack.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

subscribe-privacy-jetpack/subscribe-privacy-jetpack.php Passed 13 tests

The main PHP script in "Subscribe privacy for Jetpack" version 1.1.1 is automatically included on every request by WordPress
116 characters long description:
Adds agreement for privacy policy to mail subscriptions. Needs the Jetpack plugin with the use of subscription form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected64 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141940
PO File12524

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions2
▷ Named functions2100.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
No PNG files were detected