78% arevico-security-basic

Code Review | Arevico Security Basic

WordPress plugin Arevico Security Basic scored78%from 54 tests.

About plugin

  • Plugin page: arevico-security-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Aug 14, 2013
  • Latest release: Dec 12, 2013
  • Number of updates: 11
  • Update frequency: every 10.9 days
  • Top authors: Arevico (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,086 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.46ms] Passed 4 tests

This is a short check of server-side resources used by Arevico Security Basic
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.1246.34 ▲2.58
Dashboard /wp-admin3.73 ▲0.1751.26 ▼1.95
Posts /wp-admin/edit.php3.79 ▲0.1150.07 ▼6.33
Add New Post /wp-admin/post-new.php6.25 ▲0.1191.67 ▼3.24
Media Library /wp-admin/upload.php3.59 ▲0.1137.99 ▲1.67
Arevico Security /wp-admin/options-general.php?page=arevico-security-top3.5434.72

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Arevico Security Basic
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.29 ▼0.291.91 ▼0.3942.09 ▼2.12
Dashboard /wp-admin2,199 ▲225.64 ▲0.0189.05 ▼10.3140.10 ▼2.03
Posts /wp-admin/edit.php2,104 ▲72.00 ▼0.0336.86 ▼0.5733.14 ▼4.41
Add New Post /wp-admin/post-new.php1,548 ▲322.87 ▼0.33651.58 ▼27.2450.80 ▼5.10
Media Library /wp-admin/upload.php1,401 ▲44.23 ▼0.04102.07 ▼2.4646.25 ▼1.11
Arevico Security /wp-admin/options-general.php?page=arevico-security-top1,0132.1128.7060.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=arevico-security-top
    • > Notice in wp-content/plugins/arevico-security-basic/opt-security-admin.php+46
    Undefined variable: link

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arevico-security-basic/arevico-security.php:14

User-side errors Passed 1 test

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

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
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Authentication options), #2 (Lockout options)
You can take inspiration from this readme.txt

arevico-security-basic/arevico-security.php 92% from 13 tests

The main file in "Arevico Security Basic" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("arevico-security-basic.php" instead of "arevico-security.php")

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
There were no executable files found in this plugin794 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3163139509
CSS14710254
JavaScript18231

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity33.33
▷ Minimum class complexity3.00
▷ Maximum class complexity54.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods46
▷ Static methods1736.96%
▷ Public methods3678.26%
▷ Protected methods00.00%
▷ Private methods1021.74%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.24KB18.18KB▼ 39.88%
screenshot-2.png45.44KB21.20KB▼ 53.33%