84% wp-piwik-privacy-by-wpado

Code Review | WP-Piwik Privacy by WPADO

WordPress plugin WP-Piwik Privacy by WPADO scored 84% from 54 tests.

About plugin

  • Plugin page: wp-piwik-privacy-...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.2.2
  • WordPress version: 6.3.1
  • First release: May 29, 2015
  • Latest release: May 31, 2015
  • Number of updates: 28
  • Update frequency: every 0.3 days
  • Top authors: ThorbenR (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,250 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by WP-Piwik Privacy by WPADO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.56 ▲0.72
Dashboard /wp-admin3.31 ▲0.0042.35 ▼3.60
Posts /wp-admin/edit.php3.36 ▲0.0045.03 ▼2.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.91 ▼17.51
Media Library /wp-admin/upload.php3.23 ▲0.0037.32 ▲4.48

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP-Piwik Privacy by WPADO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▼0.171.73 ▼0.1442.62 ▼6.72
Dashboard /wp-admin2,203 ▲154.85 ▼0.03104.52 ▼0.6939.67 ▼0.39
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0438.97 ▼2.6633.71 ▲0.16
Add New Post /wp-admin/post-new.php1,542 ▲923.44 ▲0.03681.50 ▼17.3552.59 ▼10.07
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.12107.12 ▲10.9647.69 ▲7.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-piwik-privacy-by-wpado/wpado-piwik-privacy.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: privatsphre, piwik, privacy, analytics

wp-piwik-privacy-by-wpado/wpado-piwik-privacy.php 92% from 13 tests

Analyzing the main PHP file in "WP-Piwik Privacy by WPADO" version 1.0.4
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-piwik-privacy-by-wpado.php" instead of "wpado-piwik-privacy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1231033

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin