90% netsecop

Code Review | Netsecop Web Application Vulnerability, Malware, and Blacklist Scanner

WordPress plugin Netsecop Web Application Vulnerability, Malware, and Blacklist Scanner scored90%from 54 tests.

About plugin

  • Plugin page: netsecop
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9
  • WordPress version: 6.3.1
  • First release: Nov 20, 2017
  • Latest release: Nov 21, 2017
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: netsecop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /724 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼1.31ms] Passed 4 tests

An overview of server-side resources used by Netsecop Web Application Vulnerability, Malware, and Blacklist Scanner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.63 ▼3.16
Dashboard /wp-admin3.31 ▲0.0045.25 ▼4.41
Posts /wp-admin/edit.php3.36 ▲0.0048.48 ▲3.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.02 ▲9.09
Media Library /wp-admin/upload.php3.23 ▲0.0033.87 ▼1.30

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
netsecop_free_scan_initialized
widget_recent-comments
netsecop_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Netsecop Web Application Vulnerability, Malware, and Blacklist Scanner
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼0.981.70 ▼0.5044.29 ▼11.62
Dashboard /wp-admin2,206 ▲185.84 ▼0.0296.76 ▼19.0837.88 ▼3.48
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0439.45 ▲3.9934.71 ▲0.37
Add New Post /wp-admin/post-new.php1,528 ▼918.57 ▼4.72645.71 ▼25.7460.29 ▼1.49
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0195.97 ▼18.5543.78 ▼0.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • netsecop_free_scan_initialized
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (42 tag instead of maximum 10)
You can look at the official readme.txt

netsecop/netsecop.php Passed 13 tests

This is the main PHP file of "Netsecop Web Application Vulnerability, Malware, and Blacklist Scanner" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
25 characters long description:
Netsecop Security Scanner

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin490 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10196177490

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/netsecop-logo.png1.77KB1.05KB▼ 40.46%