83% russian-privacy-policy-page-and-notice

Code Review | Политика конфиденциальности для сайта. Согласие под формами Contact-Form 7

WordPress plugin Политика конфиденциальности для сайта. Согласие под формами Contact-Form 7 scored83%from 54 tests.

About plugin

  • Plugin page: russian-privacy-p...
  • Plugin version: 1.29
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Jul 3, 2017
  • Latest release: May 30, 2022
  • Number of updates: 38
  • Update frequency: every 47.2 days
  • Top authors: alsky (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /12,399 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.99ms] Passed 4 tests

Server-side resources used by Политика конфиденциальности для сайта. Согласие под формами Contact-Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0646.67 ▲7.16
Dashboard /wp-admin3.36 ▲0.0553.27 ▲1.98
Posts /wp-admin/edit.php3.41 ▲0.0549.65 ▼6.50
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.73 ▼12.92
Media Library /wp-admin/upload.php3.28 ▲0.0541.60 ▲5.50

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Политика конфиденциальности для сайта. Согласие под формами Contact-Form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.37 ▼0.003.82 ▲2.1058.20 ▲17.26
Dashboard /wp-admin2,214 ▲375.66 ▼0.0095.60 ▲7.8441.68 ▲3.08
Posts /wp-admin/edit.php2,119 ▲162.01 ▼0.0234.48 ▼5.4133.19 ▼4.58
Add New Post /wp-admin/post-new.php1,541 ▲423.46 ▲5.29643.80 ▲34.3758.17 ▼11.33
Media Library /wp-admin/upload.php1,416 ▲164.19 ▼0.1796.58 ▼14.1945.24 ▲2.86

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
  • 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/russian-privacy-policy-page-and-notice/privacy-policy-cf7.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: 152

russian-privacy-policy-page-and-notice/privacy-policy-cf7.php 77% from 13 tests

The main file in "Политика конфиденциальности для сайта. Согласие под формами Contact-Form 7" v. 1.29 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Plugin Name: Please shorten the plugin name (currently 126 characters long instead of max. 70)
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 524 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("russian-privacy-policy-page-and-notice.php" instead of "privacy-policy-cf7.php")

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
Success! There were no dangerous files found in this plugin198 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12213198

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions11
▷ Named functions11100.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
No PNG images were found in this plugin