Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.91MB] [CPU: ▲1.28ms] Passed 4 tests
Server-side resources used by Pareto Security
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.40 ▲0.94 | 49.10 ▲12.23 |
Dashboard /wp-admin | 4.23 ▲0.88 | 56.52 ▼1.79 |
Posts /wp-admin/edit.php | 4.28 ▲0.92 | 53.65 ▲6.39 |
Add New Post /wp-admin/post-new.php | 6.81 ▲0.92 | 88.92 ▼9.81 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 45.02 ▲10.32 |
Pareto Security Dashboard /wp-admin/options-general.php?page=pareto_security_settings | 4.13 | 39.18 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
pareto_security_log_list |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
pareto_security_settings_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pareto Security
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.33 ▼0.02 | 1.81 ▲0.19 | 42.97 ▲6.26 |
Dashboard /wp-admin | 2,198 ▲17 | 5.55 ▼0.20 | 83.65 ▼17.48 | 76.15 ▲29.33 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.00 ▲0.05 | 35.20 ▼4.00 | 33.20 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.18 ▼0.56 | 612.59 ▼78.40 | 155.42 ▲93.77 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.13 ▼0.14 | 94.44 ▼10.64 | 77.23 ▲32.90 |
Pareto Security Dashboard /wp-admin/options-general.php?page=pareto_security_settings | 1,515 | 2.24 | 39.23 | 54.10 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- pareto_security_ip_flood_list
- theysaidso_admin_options
- pareto_security_settings_options
- pareto_security_log_list
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined method pareto_functions::send444() in wp-content/plugins/pareto-security/uninstall.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 28 tag instead of maximum 10
pareto-security/pareto_security.php 92% from 13 tests
The primary PHP file in "Pareto Security" version 3.2.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pareto-security.php" instead of "pareto_security.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,937 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 208 | 1,287 | 3,750 |
CSS | 1 | 1 | 2 | 144 |
JavaScript | 1 | 0 | 0 | 27 |
XML | 2 | 0 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 224.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 902.00 |
Average method complexity | 7.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 166 | |
▷ Static methods | 6 | 3.61% |
▷ Public methods | 155 | 93.37% |
▷ Protected methods | 4 | 2.41% |
▷ Private methods | 7 | 4.22% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 7 | 63.64% |
▷ Class constants | 4 | 36.36% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon16bw.png | 0.32KB | 0.25KB | ▼ 21.36% |
img/icon.png | 1.97KB | 1.69KB | ▼ 14.00% |
img/icon16.png | 0.39KB | 0.32KB | ▼ 17.62% |