78% avp-website-solution

Code Review | AVP Website Solution

WordPress plugin AVP Website Solution scored78%from 54 tests.

About plugin

  • Plugin page: avp-website-solution
  • Plugin version: 1.7.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 26, 2020
  • Latest release: Aug 13, 2021
  • Number of updates: 4
  • Update frequency: every 76.0 days
  • Top authors: bowieraymon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /894 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.27ms] Passed 4 tests

An overview of server-side resources used by AVP Website Solution
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.66 ▼1.33
Dashboard /wp-admin3.31 ▼0.0448.78 ▼18.04
Posts /wp-admin/edit.php3.36 ▲0.0050.73 ▼0.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.56 ▼28.73
Media Library /wp-admin/upload.php3.23 ▲0.0038.87 ▲3.42

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
It is recommended to fix the following issues
  • There were 59 files (9,337.06KB) illegally modified outside of "wp-content/plugins/avp-website-solution/" and "wp-content/uploads/"
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/antivirus.php
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/themes/default/assets/fonts/brand-icons.eot
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/semantic.min.css
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/semantic.min.js
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/index.html
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/test.css
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/themes/default/assets/fonts/brand-icons.svg
    • (new file) wp-content/plugins/wp-website-antivirus-protection/tmp/.empty
    • (new file) siteguarding_tools.php
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/qrcode.js
    • ...
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for AVP Website Solution
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.161.71 ▼0.1641.72 ▼0.08
Dashboard /wp-admin2,192 ▲155.65 ▲0.0087.96 ▼5.3842.39 ▼3.18
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0335.94 ▼0.1034.94 ▼2.05
Add New Post /wp-admin/post-new.php1,531 ▲522.69 ▼0.94679.77 ▲13.3655.32 ▼5.22
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.0395.40 ▼11.5043.57 ▼5.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/avp-website-solution/siteguarding_tools.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/avp-website-solution/avp-website-solution.php:10

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 28 tag instead of maximum 10
Please take inspiration from this readme.txt

avp-website-solution/avp-website-solution.php 92% from 13 tests

The primary PHP file in "AVP Website Solution" version 1.7.14 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin405 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP210537403
Pascal1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin