Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.26ms] Passed 4 tests
Server-side resources used by NinjaScanner - Virus & Malware scan
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 37.61 ▼2.20 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.27 ▼4.12 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.87 ▼1.94 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.16 ▼4.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.49 ▲4.25 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Illegal file modification detected: 10 files (1.90KB) outside of "wp-content/plugins/ninjascanner/" and "wp-content/uploads/"
- (new file) wp-content/ninjascanner/nscan651f0df465f5e6.82952898/index.html
- (new file) wp-content/ninjascanner/nscan651f0df465f5e6.82952898/cache/.htaccess
- (new file) wp-content/ninjascanner/local/index.html
- (new file) wp-content/ninjascanner/.htaccess
- (new file) wp-content/ninjascanner/nscan651f0df465f5e6.82952898/.htaccess
- (new file) wp-content/ninjascanner/nscan651f0df465f5e6.82952898/cache/index.html
- (new file) wp-content/ninjascanner/local/.htaccess
- (new file) wp-content/ninjascanner/index.html
- (new file) wp-content/ninjascanner/nscan651f0df465f5e6.82952898/quarantine/.htaccess
- (new file) wp-content/ninjascanner/nscan651f0df465f5e6.82952898/quarantine/index.html
Filesystem: 64 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
nscan_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by NinjaScanner - Virus & Malware scan
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲88 | 13.58 ▼0.97 | 1.76 ▲0.20 | 39.07 ▼10.81 |
Dashboard /wp-admin | 2,229 ▲41 | 5.84 ▲0.84 | 100.70 ▼6.29 | 38.79 ▼5.95 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.02 ▼0.01 | 40.53 ▲0.30 | 35.02 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 18.38 ▼5.00 | 599.37 ▼48.02 | 56.07 ▲8.85 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.21 ▼0.07 | 95.61 ▼2.88 | 43.40 ▲0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 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 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
Please fix the following
- 33× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/ninjascanner/lib/vendor/diff/Diff/Renderer/Abstract.php
- > /wp-content/plugins/ninjascanner/lib/scan.php
- > /wp-content/plugins/ninjascanner/lib/file_compare.php
- > /wp-content/plugins/ninjascanner/lib/tab_log.php
- > /wp-content/plugins/ninjascanner/lib/install.php
- > /wp-content/plugins/ninjascanner/lib/utils.php
- > /wp-content/plugins/ninjascanner/lib/tab_premium.php
- > /wp-content/plugins/ninjascanner/lib/vendor/diff/Diff/Renderer/Html/SideBySide.php
- > /wp-content/plugins/ninjascanner/lib/vendor/diff/Diff/SequenceMatcher.php
- > /wp-content/plugins/ninjascanner/uninstall.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: virus, malware, security, protection, scanner
ninjascanner/index.php 92% from 13 tests
The principal PHP file in "NinjaScanner - Virus & Malware scan" v. 3.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ninjascanner.php" instead of "index.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
No dangerous file extensions were detected11,089 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,746 | 2,903 | 8,298 |
PO File | 1 | 848 | 1,338 | 2,131 |
JavaScript | 2 | 72 | 91 | 396 |
CSS | 2 | 28 | 23 | 263 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 67.50% |
▷ Protected methods | 1 | 2.50% |
▷ Private methods | 12 | 30.00% |
Functions | 121 | |
▷ Named functions | 121 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 46 | |
▷ Global constants | 46 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/rate.png | 0.54KB | 0.49KB | ▼ 10.07% |
static/logo_ns_40.png | 2.68KB | 1.95KB | ▼ 27.25% |
static/logo_ns_100.png | 18.18KB | 4.33KB | ▼ 76.19% |
static/integration.png | 7.53KB | 3.91KB | ▼ 48.01% |