84% releva-nz

Code Review | releva.nz | Dynamisches Retargeting

WordPress plugin releva.nz | Dynamisches Retargeting scored84%from 54 tests.

About plugin

  • Plugin page: releva-nz
  • Plugin version: 2.1.5
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.0
  • WordPress version: 6.3.1
  • First release: Jan 31, 2018
  • Latest release: Nov 3, 2023
  • Number of updates: 18
  • Update frequency: every 116.8 days
  • Top authors: relevanz (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /1,637 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by releva.nz | Dynamisches Retargeting
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.41 ▼9.37
Dashboard /wp-admin3.31 ▼0.0344.72 ▼13.10
Posts /wp-admin/edit.php3.36 ▲0.0150.39 ▼0.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.68 ▼15.23
Media Library /wp-admin/upload.php3.24 ▲0.0134.73 ▲0.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for releva.nz | Dynamisches Retargeting
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.18 ▼0.171.56 ▼0.0641.03 ▼4.31
Dashboard /wp-admin2,199 ▲225.62 ▲0.0090.53 ▲0.3743.21 ▼2.92
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0341.47 ▲1.6036.57 ▼0.04
Add New Post /wp-admin/post-new.php1,533 ▼323.10 ▼0.01602.51 ▼50.9253.81 ▼2.51
Media Library /wp-admin/upload.php1,407 ▲74.21 ▼0.06122.91 ▲22.6359.72 ▲14.92

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% 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 take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/releva-nz/admin/partials/admin-notices.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/releva-nz/admin/partials/admin-chart.php:17
    • > PHP Notice
      Undefined variable: once in wp-content/plugins/releva-nz/admin/partials/admin-notices.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/releva-nz/admin/partials/admin-menu.php:9

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: advertising, retargeting, e-commerce, sales, remarketing...

releva-nz/relevatracking.php 85% from 13 tests

This is the main PHP file of "releva.nz | Dynamisches Retargeting" version 2.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("releva-nz.php" instead of "relevatracking.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,639 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP149541,6254,211
JavaScript36152255
PO File25071153
CSS23420

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity51.09
▷ Minimum class complexity1.00
▷ Maximum class complexity352.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods136
▷ Static methods2619.12%
▷ Public methods8461.76%
▷ Protected methods64.41%
▷ Private methods4633.82%
Functions16
▷ Named functions637.50%
▷ Anonymous functions1062.50%
Constants26
▷ Global constants13.85%
▷ Class constants2596.15%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected