84% update-privacy

Code Review | Update Privacy

WordPress plugin Update Privacy scored84%from 54 tests.

About plugin

  • Plugin page: update-privacy
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2017
  • Latest release: May 23, 2019
  • Number of updates: 11
  • Update frequency: every 52.3 days
  • Top authors: mattrad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /991 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.96ms] Passed 4 tests

This is a short check of server-side resources used by Update Privacy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.44 ▲2.41
Dashboard /wp-admin3.31 ▲0.0145.66 ▲2.73
Posts /wp-admin/edit.php3.36 ▲0.0042.46 ▼4.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.74 ▼12.03
Media Library /wp-admin/upload.php3.23 ▲0.0036.47 ▲4.07

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Update Privacy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.24 ▼0.362.08 ▲0.0945.27 ▲6.79
Dashboard /wp-admin2,195 ▲175.65 ▼0.0381.91 ▼24.3538.27 ▼3.15
Posts /wp-admin/edit.php2,079 ▼242.03 ▲0.0636.66 ▼5.9235.28 ▼1.24
Add New Post /wp-admin/post-new.php1,534 ▲818.43 ▼5.25644.99 ▼8.25109.44 ▲46.60
Media Library /wp-admin/upload.php1,403 ▲34.23 ▼0.1297.82 ▼3.4742.85 ▼3.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/update-privacy/update-privacy.php:24

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: privacy, gdpr, updates

update-privacy/update-privacy.php Passed 13 tests

"Update Privacy" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Stop WordPress sending anything but essential data during the update check.

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 detected32 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JSON10019
PHP111013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin