10% ats-privacy-policy

Code Review | ats privacy policy

WordPress plugin ats privacy policy scored10%from 54 tests.

About plugin

  • Plugin page: ats-privacy-policy
  • Plugin version: 7.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Aug 11, 2017
  • Latest release: Sep 17, 2023
  • Number of updates: 97
  • Update frequency: every 23.0 days
  • Top authors: aleksats (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /7,837 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/ats-privacy-policy/includes/privats/privats.php+7
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.57ms] Passed 4 tests

Server-side resources used by ats privacy policy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.436.11 ▼32.15
Dashboard /wp-admin2.05 ▼1.2612.51 ▼35.67
Posts /wp-admin/edit.php2.05 ▼1.316.92 ▼37.62
Add New Post /wp-admin/post-new.php2.05 ▼3.845.90 ▼100.84
Media Library /wp-admin/upload.php2.05 ▼1.185.48 ▼27.67

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ats privacy policy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7514.46 ▲0.072.11 ▲0.2437.88 ▼11.73
Dashboard /wp-admin2,215 ▲244.85 ▼0.20108.44 ▼2.5945.03 ▲2.01
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0040.27 ▲2.0935.18 ▼2.15
Add New Post /wp-admin/post-new.php1,542 ▲718.26 ▼4.81613.91 ▼8.3155.08 ▼0.58
Media Library /wp-admin/upload.php1,394 ▲94.22 ▲0.0293.39 ▼11.3239.02 ▼7.99
ATs Privacy Policy /wp-admin/policy-ats.php260.440.0813.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/ats-privacy-policy/includes/privats/privats.php+7
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ats-privacy-policy/template/blocs.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ats-privacy-policy/ats-privacy-policy.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ats-privacy-policy/includes/privats/privats.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ats-privacy-policy/settings.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/policy-ats.php
    • > Network (severe)
    wp-admin/policy-ats.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Plugin settings on standart WordPress Settings > Discussion page.), #2 ()
  • Plugin Name: You should set the name of your plugin on the first line ( === ats-privacy-policy === )
You can look at the official readme.txt

ats-privacy-policy/ats-privacy-policy.php 85% from 13 tests

This is the main PHP file of "ats privacy policy" version 7.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 683 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected455 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP671168442
CSS222113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions36
▷ Named functions36100.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.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/ats-privacy-policy.png11.25KB11.28KB0.00%