100% frumentarii

Code Review | Frumentarii Security Malware Scanner and Anti Virus

WordPress plugin Frumentarii Security Malware Scanner and Anti Virus scored 100% from 54 tests.

About plugin

  • Plugin page: frumentarii
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 5.8.1
  • First release: Sep 25, 2016
  • Latest release: Oct 8, 2016
  • Number of updates: 14
  • Update frequency: every 45.3 days
  • Top authors: eslamsalem (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active / 1,950 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Frumentarii Security Malware Scanner and Anti Virus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.64 ▲8.10
Dashboard /wp-admin3.06 ▲0.0151.01 ▲2.12
Posts /wp-admin/edit.php3.11 ▲0.0046.81 ▲1.03
Add New Post /wp-admin/post-new.php5.42 ▼0.0291.57 ▼575.09
Media Library /wp-admin/upload.php3.00 ▲0.0035.94 ▲2.28

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Frumentarii Security Malware Scanner and Anti Virus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲11315.86 ▲0.337.62 ▼0.1951.60 ▼0.68
Dashboard /wp-admin2,995 ▲586.09 ▲0.01133.42 ▼20.19116.58 ▼15.01
Posts /wp-admin/edit.php2,745 ▲92.82 ▼0.0066.50 ▼6.5489.13 ▼2.02
Add New Post /wp-admin/post-new.php1,502 ▼18118.90 ▲0.16375.99 ▼20.95107.23 ▼10.21
Media Library /wp-admin/upload.php1,813 ▲65.02 ▼0.04153.57 ▼17.92121.17 ▼9.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (19 tag instead of maximum 10)
The official readme.txt might help

frumentarii/frumentarii.php Passed 13 tests

Analyzing the main PHP file in "Frumentarii Security Malware Scanner and Anti Virus" version 1.3
29 characters long description:
Anti Malware for your website

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
Good job! No executable or dangerous file extensions detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15816

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon.png1.25KB1.08KB▼ 13.93%
logo.png16.45KB8.38KB▼ 49.07%
banner.png24.17KB12.03KB▼ 50.25%