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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.78ms] Passed 4 tests
An overview of server-side resources used by AWP antivirus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.07 ▼2.49 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.57 ▼1.35 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.61 ▲3.96 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.48 ▼3.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 42.06 ▲6.57 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
wp_awp_lock |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for AWP antivirus
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.20 ▼1.19 | 2.40 ▲0.50 | 42.99 ▼6.77 |
Dashboard /wp-admin | 2,233 ▲42 | 5.98 ▲0.09 | 97.10 ▼17.50 | 66.97 ▲18.21 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.05 ▼0.01 | 33.72 ▼2.79 | 36.30 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,692 ▲178 | 22.28 ▲4.58 | 656.87 ▲8.07 | 52.12 ▼12.16 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.23 ▲0.07 | 100.18 ▲4.14 | 75.77 ▲28.87 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- wp_awp_lock
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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 require attention:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
awp-antivirus/AWP-antivirus.php 92% from 13 tests
The primary PHP file in "AWP antivirus" version 1.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("awp-antivirus.php" instead of "AWP-antivirus.php")
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
No dangerous file extensions were detected956 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 170 | 20 | 650 |
PO File | 2 | 112 | 124 | 306 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 100.00 |
▷ Minimum class complexity | 100.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 7.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/error.png | 4.24KB | 1.48KB | ▼ 65.18% |
images/check.png | 2.15KB | 1.37KB | ▼ 36.57% |
images/valid.png | 4.33KB | 1.51KB | ▼ 65.15% |
images/icone.png | 1.66KB | 0.91KB | ▼ 45.07% |
images/info.png | 4.30KB | 1.51KB | ▼ 64.82% |