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.35MB] [CPU: ▼2.22ms] Passed 4 tests
Analyzing server-side resources used by Virusdie - One-click website security
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 37.74 ▲1.23 |
Dashboard /wp-admin | 3.69 ▲0.38 | 47.16 ▲1.40 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 46.11 ▼4.55 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 80.61 ▼6.97 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 36.05 ▲1.58 |
Server storage [IO: ▲2.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Virusdie - One-click website security
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.40 ▲0.05 | 1.64 ▲0.14 | 42.00 ▼1.00 |
Dashboard /wp-admin | 2,209 ▲29 | 5.60 ▼0.02 | 80.76 ▼6.27 | 72.76 ▲30.13 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.03 ▼0.00 | 34.83 ▼1.88 | 31.08 ▼6.33 |
Add New Post /wp-admin/post-new.php | 1,559 ▲18 | 18.16 ▼4.77 | 649.33 ▼17.85 | 58.31 ▲3.45 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.12 ▼0.04 | 97.35 ▼5.21 | 72.55 ▲28.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 22× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/virusdie/inc/tools/class-virusdie-messages.php
- > /wp-content/plugins/virusdie/views/reg-error.php
- > /wp-content/plugins/virusdie/views/premium.php
- > /wp-content/plugins/virusdie/views/error.php
- > /wp-content/plugins/virusdie/inc/tools/class-virusdie-user.php
- > /wp-content/plugins/virusdie/views/scan-start.php
- > /wp-content/plugins/virusdie/views/free.php
- > /wp-content/plugins/virusdie/inc/tools/class-virusdie-api.php
- > /wp-content/plugins/virusdie/views/php-error.php
- > /wp-content/plugins/virusdie/inc/tools/class-virusdie-geo.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/virusdie/virusdie.php on line 20
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/virusdie/virusdie.php on line 20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/virusdie/virusdie.php on line 20
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
virusdie/virusdie.php Passed 13 tests
Analyzing the main PHP file in "Virusdie - One-click website security" version 1.1.2
57 characters long description:
One-Click Website security with Virusdie Wordpress Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin11,863 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 900 | 1,069 | 5,719 |
CSS | 2 | 498 | 3 | 3,839 |
PHP | 23 | 241 | 386 | 2,252 |
SVG | 6 | 0 | 0 | 53 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 33.22 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 64 | 46.38% |
▷ Public methods | 97 | 70.29% |
▷ Protected methods | 3 | 2.17% |
▷ Private methods | 38 | 27.54% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
11 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icons/icon-256.png | 9.04KB | 5.12KB | ▼ 43.35% |
assets/img/icons/favicons.png | 0.52KB | 0.42KB | ▼ 18.87% |
assets/img/slides/slide_2.png | 25.58KB | 26.70KB | 0.00% |
assets/img/slides/slide_7.png | 5.97KB | 6.86KB | 0.00% |
assets/img/icons/avatar.png | 1.01KB | 0.57KB | ▼ 44.06% |