99% cystack-security

Code Review | CyStack Security - Vulnerability Scanner & Security Monitoring

WordPress plugin CyStack Security - Vulnerability Scanner & Security Monitoring scored 99% from 54 tests.

About plugin

  • Plugin page: cystack-security
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 5.8.1
  • First release: Jul 2, 2020
  • Latest release: Aug 3, 2020
  • Number of updates: 12
  • Update frequency: every 2.7 days
  • Top authors: cystack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 402 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼140.36ms] Passed 4 tests

This is a short check of server-side resources used by CyStack Security - Vulnerability Scanner & Security Monitoring
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0243.48 ▲4.89
Dashboard /wp-admin3.08 ▲0.0356.12 ▲6.09
Posts /wp-admin/edit.php3.13 ▲0.0344.98 ▼5.54
Add New Post /wp-admin/post-new.php5.44 ▲0.0196.85 ▼566.89
Media Library /wp-admin/upload.php3.02 ▲0.0243.48 ▲8.49

Server storage [IO: ▲1.45MB] [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: 57 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for CyStack Security - Vulnerability Scanner & Security Monitoring
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,834 ▲26215.84 ▼0.077.71 ▼1.6453.23 ▼0.99
Dashboard /wp-admin3,095 ▲1645.90 ▼0.08140.58 ▼14.96135.40 ▲19.00
Posts /wp-admin/edit.php2,886 ▲1472.68 ▼0.1564.42 ▼7.0591.18 ▼7.83
Add New Post /wp-admin/post-new.php3,871 ▲2,18820.30 ▲1.50537.35 ▲151.71147.48 ▲37.75
Media Library /wp-admin/upload.php1,883 ▲765.00 ▼0.02151.25 ▼2.69180.52 ▲46.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

cystack-security/cystack-security.php 92% from 13 tests

The main file in "CyStack Security - Vulnerability Scanner & Security Monitoring" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin8,163 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
JSON4006,984
PHP24147338723
JavaScript10255243
PO File24046117
SVG10060
CSS20036

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.61
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes15.56%
Methods56
▷ Static methods2137.50%
▷ Public methods5292.86%
▷ Protected methods00.00%
▷ Private methods47.14%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants16
▷ Global constants637.50%
▷ Class constants1062.50%
▷ Public constants10100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 1.09MB with 0.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png139.09KB39.04KB▼ 71.93%
assets/screenshot-4.png141.13KB37.69KB▼ 73.30%
assets/screenshot-1.png128.07KB38.00KB▼ 70.33%
assets/screenshot-5.png163.92KB52.61KB▼ 67.90%
assets/screenshot-6.png136.64KB39.59KB▼ 71.02%