93% ev-visual-search

Code Review | Make Money with Visual Search

WordPress plugin Make Money with Visual Search scored 93% from 54 tests.

About plugin

  • Plugin page: ev-visual-search
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 5.9.2
  • First release: Mar 24, 2020
  • Latest release: Mar 24, 2020
  • Number of updates: 10
  • Update frequency: every 0.4 days
  • Top authors: evplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 290 total downloads

Benchmarks

Plugin footprint Passed 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: ▼293.77ms] Passed 4 tests

A check of server-side resources used by Make Money with Visual Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1257.91 ▲9.57
Dashboard /wp-admin3.44 ▲0.0336.35 ▲2.74
Posts /wp-admin/edit.php3.66 ▲0.0239.09 ▼5.30
Add New Post /wp-admin/post-new.php6.93 ▼0.0697.08 ▼1,169.17
Media Library /wp-admin/upload.php3.31 ▲0.0126.88 ▼3.33
EV Visual Search /wp-admin/options-general.php?page=ev-visual-search3.2622.06

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Make Money with Visual Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲1515.92 ▲0.286.11 ▲0.402.23 ▼0.48
Dashboard /wp-admin2,894 ▲366.22 ▲0.04118.63 ▼13.54154.51 ▼0.56
Posts /wp-admin/edit.php2,696 ▲53.23 ▼0.0163.35 ▼2.42141.71 ▼5.40
Add New Post /wp-admin/post-new.php1,714 ▲420.76 ▼0.40427.84 ▲5.93155.67 ▲2.41
Media Library /wp-admin/upload.php1,703 ▲85.45 ▼0.06133.58 ▼10.78184.39 ▼12.87
EV Visual Search /wp-admin/options-general.php?page=ev-visual-search1,0642.4055.51125.68

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ev-visual-search
    • > Notice in wp-content/plugins/ev-visual-search/helpers/helper.php+85
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ev-visual-search
    • > Notice in wp-content/plugins/ev-visual-search/helpers/helper.php+89
    Undefined index: placeholder
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ev-visual-search
    • > Notice in wp-content/plugins/ev-visual-search/helpers/helper.php+90
    Undefined index: extra

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

ev-visual-search/index.php 85% from 13 tests

The primary PHP file in "Make Money with Visual Search" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ev-visual-search.php" instead of "index.php")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected393 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP411157393

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.40
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods4197.62%
▷ Protected methods00.00%
▷ Private methods12.38%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected