84% privacybuilder

Code Review | Privacy Builder

WordPress plugin Privacy Builder scored84%from 54 tests.

About plugin

  • Plugin page: privacybuilder
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 7, 2014
  • Latest release: Dec 17, 2014
  • Number of updates: 18
  • Update frequency: every 2.3 days
  • Top authors: ronslow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /670 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Privacy Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.10 ▼0.69
Dashboard /wp-admin3.32 ▲0.0156.70 ▲5.85
Posts /wp-admin/edit.php3.37 ▲0.0152.03 ▼5.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.38 ▼24.08
Media Library /wp-admin/upload.php3.24 ▲0.0137.20 ▼1.52
PrivacyBuilder /wp-admin/options-general.php?page=my-unique-identifier3.2135.24

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Privacy Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲12313.89 ▼0.478.07 ▲6.3639.98 ▼5.48
Dashboard /wp-admin2,200 ▲235.64 ▲0.0186.71 ▼5.3544.09 ▲0.76
Posts /wp-admin/edit.php2,111 ▲82.03 ▲0.0338.61 ▼4.6534.30 ▼2.92
Add New Post /wp-admin/post-new.php1,533 ▲523.66 ▲0.55683.04 ▲26.2856.76 ▼4.84
Media Library /wp-admin/upload.php1,408 ▲84.27 ▲0.0699.10 ▼1.9441.82 ▼5.10
PrivacyBuilder /wp-admin/options-general.php?page=my-unique-identifier8221.8525.5922.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/privacybuilder/privacybuilder.php:12

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === privacybuilder === )
The official readme.txt might help

privacybuilder/privacybuilder.php Passed 13 tests

This is the main PHP file of "Privacy Builder" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
29 characters long description:
Privacy Builder configuration

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin318 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25783177
PHP13313141

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
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 functions990.00%
▷ Anonymous functions110.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
There were not PNG files found in your plugin