10% 123privacy

Code Review | 123privacy

WordPress plugin 123privacy scored 10% from 54 tests.

About plugin

  • Plugin page: 123privacy
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 5.9.2
  • First release: Nov 15, 2012
  • Latest release: Aug 13, 2015
  • Number of updates: 12
  • Update frequency: every 83.7 days
  • Top authors: ezraverheijen (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 3,836 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/123privacy/123privacy.php+87
    Function create_function() is deprecated

Server metrics [RAM: ▼2.53MB] [CPU: ▼350.74ms] Passed 4 tests

An overview of server-side resources used by 123privacy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.674.50 ▼45.21
Dashboard /wp-admin1.86 ▼1.553.23 ▼28.47
Posts /wp-admin/edit.php1.86 ▼1.783.66 ▼31.83
Add New Post /wp-admin/post-new.php1.86 ▼5.114.70 ▼1,297.44
Media Library /wp-admin/upload.php1.86 ▼1.444.21 ▼17.93
123privacy /wp-admin/options-general.php?page=privacy_to_wordpress1.864.22

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
widget_twitter_button

Browser metrics Passed 4 tests

123privacy: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,926 ▲18416.25 ▲0.5911.43 ▲5.503.01 ▲0.69
Dashboard /wp-admin2,899 ▲416.09 ▼0.17115.52 ▼18.00153.13 ▼4.99
Posts /wp-admin/edit.php2,698 ▲43.24 ▲0.0061.19 ▼0.18139.09 ▼5.60
Add New Post /wp-admin/post-new.php1,763 ▲10221.86 ▲5.28416.89 ▼21.42156.14 ▲9.86
Media Library /wp-admin/upload.php1,706 ▲85.50 ▼0.01137.99 ▼3.42187.32 ▲1.43
123privacy /wp-admin/options-general.php?page=privacy_to_wordpress1,4762.3856.47199.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/123privacy/123privacy.php+87
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_twitter_button

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=privacy_to_wordpress
    • > Deprecated in wp-content/plugins/123privacy/123privacy.php+87
    Function create_function() is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=privacy_to_wordpress
    • > Notice in wp-content/plugins/123privacy/classes/Privacy_To_Wordpress.php+80
    Undefined index: form_content_validator
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=privacy_to_wordpress
    • > Notice in wp-content/plugins/123privacy/classes/Privacy_To_Wordpress.php+211
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=privacy_to_wordpress
    • > Notice in wp-content/plugins/123privacy/classes/Privacy_To_Wordpress.php+211
    Trying to access array offset on value of type null

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/123privacy/123privacy.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/123privacy/classes/Twitter_Button.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

123privacy/123privacy.php Passed 13 tests

The main PHP file in "123privacy" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
Plugin om de kant-en-klare cookiewet oplossing van 123privacy.nl aan WordPress toe te voegen.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected325 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4144105292
CSS12233

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.67
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
No PNG files were detected