94% revhunter-wp

Code Review | Revhunter WP

WordPress plugin Revhunter WP scored 94% from 54 tests.

About plugin

  • Plugin page: revhunter-wp
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 5.8.1
  • First release: Sep 21, 2020
  • Latest release: Jul 29, 2021
  • Number of updates: 5
  • Update frequency: every 62.8 days
  • Top authors: wzimon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,049 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Revhunter WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0036.39 ▲0.73
Dashboard /wp-admin3.06 ▲0.0052.39 ▲0.23
Posts /wp-admin/edit.php3.11 ▲0.0045.23 ▼4.78
Add New Post /wp-admin/post-new.php5.42 ▼0.0296.42 ▼582.09
Media Library /wp-admin/upload.php3.00 ▲0.0036.37 ▲1.27

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Revhunter WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.20 ▲0.5011.69 ▲2.0946.57 ▲1.71
Dashboard /wp-admin2,970 ▲336.05 ▲0.06151.66 ▼0.77109.85 ▼4.47
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0168.76 ▼3.1793.47 ▲5.20
Add New Post /wp-admin/post-new.php1,615 ▲3421.44 ▲1.26383.57 ▼155.04109.69 ▼4.32
Media Library /wp-admin/upload.php1,807 ▼35.08 ▲0.04173.71 ▲0.35120.98 ▼5.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/revhunter-wp/admin/partials/revhunter-wp-admin-display.php
    • > /wp-content/plugins/revhunter-wp/public/partials/revhunter-wp-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: revhunter, abandoned carts, product feed, prospecting, emailing...

revhunter-wp/revhunter-wp.php Passed 13 tests

The entry point to "Revhunter WP" version 1.0.0 is a PHP file that has certain tags in its header comment area
124 characters long description:
Revhunter dostarcza ruch nowych użytkowników, angażuje do ponownych zakupów, inspiruje poprzez rekomendacje i sprzedaje.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin289 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP12119471289

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.86
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin