90% virus-finder

Code Review | Virus Finder

WordPress plugin Virus Finder scored90%from 54 tests.

About plugin

  • Plugin page: virus-finder
  • Plugin version: 1.0.30
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.4
  • WordPress version: 6.3.1
  • First release: Dec 28, 2016
  • Latest release: Oct 25, 2023
  • Number of updates: 63
  • Update frequency: every 39.4 days
  • Top authors: wordpressvirusremoval (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,736 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by Virus Finder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.11 ▼3.70
Dashboard /wp-admin3.31 ▼0.0449.75 ▼10.89
Posts /wp-admin/edit.php3.36 ▲0.0045.64 ▼4.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.78 ▲2.67
Media Library /wp-admin/upload.php3.23 ▲0.0033.98 ▲0.33

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Virus Finder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7014.38 ▲0.031.80 ▲0.1244.14 ▼9.14
Dashboard /wp-admin2,214 ▲405.58 ▼0.0391.59 ▼5.7942.41 ▼3.15
Posts /wp-admin/edit.php2,116 ▲161.97 ▼0.0439.26 ▼0.6137.26 ▲3.23
Add New Post /wp-admin/post-new.php1,548 ▲1218.11 ▼5.10628.63 ▼73.1167.48 ▲9.24
Media Library /wp-admin/upload.php1,419 ▲254.19 ▲0.0099.04 ▼1.2643.28 ▼0.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in virus-finder/assets to your readme.txt
The official readme.txt is a good inspiration

virus-finder/virus-finder.php Passed 13 tests

"Virus Finder" version 1.0.30's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
PHP virus, malware finder plugin. Smart and full scan for malware detection.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected395 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17219393
CSS1001
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.54
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
style/gradient.png0.17KB0.21KB0.00%