84% relevanzz

Code Review | Relevanzz - Repeat sales with Social Ads

WordPress plugin Relevanzz - Repeat sales with Social Ads scored84%from 54 tests.

About plugin

  • Plugin page: relevanzz
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2020
  • Latest release: Jun 5, 2020
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: relevanzz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /434 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
Install script ran successfully

Server metrics [RAM: ▼0.67MB] [CPU: ▼14.40ms] Passed 4 tests

Analyzing server-side resources used by Relevanzz - Repeat sales with Social Ads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.24 ▼2.61
Dashboard /wp-admin3.31 ▲0.0146.80 ▼1.97
Posts /wp-admin/edit.php3.36 ▲0.0145.09 ▼0.05
Add New Post /wp-admin/post-new.php3.19 ▼2.7035.20 ▼52.95
Media Library /wp-admin/upload.php3.24 ▲0.0133.23 ▲1.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Relevanzz - Repeat sales with Social Ads
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.64 ▼0.602.10 ▲0.4245.77 ▼0.03
Dashboard /wp-admin2,206 ▲214.85 ▼0.0595.28 ▼10.8736.72 ▼7.17
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0433.07 ▼5.7134.72 ▲2.43
Add New Post /wp-admin/post-new.php1,542 ▲918.29 ▼4.79595.02 ▼59.0158.42 ▲4.12
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0492.36 ▼4.0342.38 ▼3.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
Good news, no errors were detected

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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/relevanzz/relevanzz.php
    • > /wp-content/plugins/relevanzz/src/class-relevanzz-woocommerce-utils.php
    • > /wp-content/plugins/relevanzz/src/class-relevanzz-woocommerce-api.php

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
6 plugin tags: relevanzz, segmentation, custom audience, woocommerce, facebook...

relevanzz/relevanzz.php Passed 13 tests

The entry point to "Relevanzz - Repeat sales with Social Ads" version 1.0.0 is a PHP file that has certain tags in its header comment area
48 characters long description:
Easily integrate Relevanzz with your WooCommerce

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
Good job! No executable or dangerous file extensions detected357 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP34532301
YAML11032
JSON10013
SVG1007
Dockerfile1204

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods4
▷ Static methods250.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions1052.63%
▷ Anonymous functions947.37%
Constants22
▷ Global constants00.00%
▷ Class constants22100.00%
▷ Public constants22100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.90MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png83.19KB23.59KB▼ 71.64%
assets/screenshot-4.png64.96KB16.43KB▼ 74.70%
assets/screenshot-6.png216.16KB39.76KB▼ 81.61%
assets/screenshot-5.png340.81KB69.03KB▼ 79.75%
assets/icon-128x128.png3.32KB1.93KB▼ 41.84%