Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.45ms] Passed 4 tests
Server-side resources used by Virus Activity
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.25 ▲0.53 |
Dashboard /wp-admin | 3.41 ▲0.06 | 52.55 ▼14.53 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.22 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 89.57 ▼18.68 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.10 ▼1.13 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
widget_virus_activity_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Virus Activity
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.72 ▲0.53 | 1.89 ▲0.02 | 44.30 ▲2.57 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▲0.00 | 84.11 ▼7.18 | 42.31 ▲2.39 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.03 | 36.91 ▲1.54 | 36.00 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,404 ▼122 | 18.23 ▼4.84 | 622.19 ▼220.22 | 51.66 ▼12.23 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▼0.05 | 110.79 ▲10.35 | 49.46 ▲1.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/virus-activity/class-virus-activity-widget.php
- > /wp-content/plugins/virus-activity/class-virus-activity.php
- > /wp-content/plugins/virus-activity/config.php
- > /wp-content/plugins/virus-activity/virus-activity.php
- > /wp-content/plugins/virus-activity/class-virus-activity-plugin.php
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: malware, technology, computer security, virus activity, spyware...
virus-activity/virus-activity.php Passed 13 tests
The main file in "Virus Activity" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Display Virus Activity level on your blog
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,833 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 26 | 475 | 1 | 1,288 |
PHP | 5 | 108 | 79 | 545 |
PHP code Passed 2 tests
This is a very shot review 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.45 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 10 | 27.78% |
▷ Public methods | 30 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
world3x.png | 30.19KB | 10.49KB | ▼ 65.24% |
world2x.png | 16.36KB | 6.21KB | ▼ 62.02% |
world.png | 5.68KB | 2.84KB | ▼ 49.93% |