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.05MB] [CPU: ▼6.01ms] Passed 4 tests
A check of server-side resources used by Astra Security Suite – Firewall & Malware Scan
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.05 | 42.15 ▼2.35 |
Dashboard /wp-admin | 3.62 ▲0.05 | 55.15 ▼1.45 |
Posts /wp-admin/edit.php | 3.73 ▲0.05 | 49.53 ▼2.55 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.05 | 91.17 ▼17.67 |
Media Library /wp-admin/upload.php | 3.54 ▲0.05 | 40.72 ▲4.19 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Astra Security Suite – Firewall & Malware Scan
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.41 ▲0.02 | 1.65 ▼0.21 | 43.75 ▼3.14 |
Dashboard /wp-admin | 2,214 ▲34 | 5.65 ▼0.00 | 98.51 ▲7.29 | 43.09 ▼4.20 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 1.99 ▼0.05 | 34.84 ▼0.91 | 32.38 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,539 ▲7 | 17.61 ▼5.70 | 683.45 ▼2.70 | 56.62 ▲4.88 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.16 ▼0.14 | 113.37 ▼0.33 | 48.57 ▼2.27 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getastra/astra-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/getastra/astra-security.php:14
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: malware cleanup, security, security audit, firewall, hack removal...
getastra/astra-security.php 92% from 13 tests
The main PHP file in "Astra Security Suite – Firewall & Malware Scan" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("getastra.php" instead of "astra-security.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
Success! There were no dangerous files found in this plugin977 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 147 | 217 | 762 |
CSS | 3 | 47 | 6 | 214 |
JavaScript | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 16.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 1 | 4.35% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
3 PNG files occupy 0.31MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Astra-dashboard1.png | 119.77KB | 28.74KB | ▼ 76.00% |
img/Ingrid_bw.png | 197.67KB | 201.64KB | 0.00% |
img/astra-s-white-logo.png | 3.23KB | 2.63KB | ▼ 18.60% |