93% weareprivacy

Code Review | Policy Highlights: Focus on Vital Keywords

WordPress plugin Policy Highlights: Focus on Vital Keywords scored 93% from 54 tests.

About plugin

  • Plugin page: weareprivacy
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.1
  • WordPress version: 5.8.1
  • First release: Jun 1, 2019
  • Latest release: Jun 3, 2019
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: weareprivacy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 310 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Policy Highlights: Focus on Vital Keywords
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1331.04 ▲11.08
Dashboard /wp-admin3.08 ▲0.0250.31 ▼3.33
Posts /wp-admin/edit.php3.13 ▲0.0247.28 ▲1.01
Add New Post /wp-admin/post-new.php5.43 ▼0.0094.01 ▼565.60
Media Library /wp-admin/upload.php3.02 ▲0.0234.23 ▼3.36

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Policy Highlights: Focus on Vital Keywords
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,735 ▲13915.89 ▲0.3511.26 ▼0.9647.94 ▼2.18
Dashboard /wp-admin2,992 ▲615.94 ▲0.00153.54 ▲9.11124.28 ▲5.56
Posts /wp-admin/edit.php2,789 ▲502.83 ▲0.1163.63 ▼15.3686.09 ▼1.20
Add New Post /wp-admin/post-new.php1,732 ▲4924.01 ▲7.80418.81 ▲9.39102.46 ▼12.25
Media Library /wp-admin/upload.php1,780 ▼275.03 ▼0.01144.92 ▼19.11138.30 ▲23.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weareprivacy/plugin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

weareprivacy/plugin.php 92% from 13 tests

The main file in "Policy Highlights: Focus on Vital Keywords" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("weareprivacy.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin127 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS19066
PHP1141159
JavaScript1001
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
sidebar-icon.png0.30KB0.26KB▼ 14.84%