78% ccpa-toll-free

Code Review | CCPA Privacy Manager

WordPress plugin CCPA Privacy Manager scored78%from 54 tests.

About plugin

  • Plugin page: ccpa-toll-free
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 3, 2019
  • Latest release: Dec 7, 2020
  • Number of updates: 6
  • Update frequency: every 63.0 days
  • Top authors: privacytollfree (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /632 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by CCPA Privacy Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.27 ▼4.13
Dashboard /wp-admin3.32 ▼0.0344.89 ▼21.28
Posts /wp-admin/edit.php3.37 ▲0.0150.12 ▲4.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.10 ▼12.56
Media Library /wp-admin/upload.php3.25 ▲0.0140.30 ▲4.85

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for CCPA Privacy Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10113.31 ▼0.904.72 ▲2.9918.77 ▼23.81
Dashboard /wp-admin2,229 ▲384.95 ▲0.05101.99 ▼12.9287.67 ▲43.38
Posts /wp-admin/edit.php2,106 ▲202.22 ▲0.2035.47 ▼1.3939.26 ▲5.08
Add New Post /wp-admin/post-new.php1,685 ▲15222.69 ▼0.76733.24 ▲66.7853.61 ▼6.96
Media Library /wp-admin/upload.php1,408 ▲174.46 ▲0.3196.87 ▼10.5583.36 ▲36.91

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% 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 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ccpa-toll-free/inc/privacy_manager_wp.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ccpa-toll-free/privacy-manager-wp-plugin.php:13

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid url: "ccpatollfree.com"
You can take inspiration from this readme.txt

ccpa-toll-free/privacy-manager-wp-plugin.php 92% from 13 tests

The main file in "CCPA Privacy Manager" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ccpa-toll-free.php" instead of "privacy-manager-wp-plugin.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
There were no executable files found in this plugin87 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2151085
CSS1041
JavaScript1051

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/menu_icon.png0.32KB0.28KB▼ 11.73%