Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/fraudgrade/libraries/admin.php+95
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.09MB] [CPU: ▼15.23ms] Passed 4 tests
Server-side resources used by FraudGrade
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.11 | 45.01 ▲0.87 |
Dashboard /wp-admin | 3.55 ▲0.16 | 39.70 ▼29.44 |
Posts /wp-admin/edit.php | 3.61 ▲0.21 | 40.42 ▼10.29 |
Add New Post /wp-admin/post-new.php | 5.80 ▼0.14 | 86.72 ▼22.06 |
Media Library /wp-admin/upload.php | 3.55 ▲0.28 | 40.47 ▲3.42 |
IP Review Settings /wp-admin/edit.php?post_type=ip_check&page=ip_check | 3.52 | 36.03 |
IP Review Cache /wp-admin/edit.php?post_type=ip_check | 3.60 | 40.11 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 13 new options
New WordPress options |
---|
db_upgraded |
recovery_mode_email_last_sent |
widget_recent-comments |
ipc_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
_ipc_total_nonblocks |
_ipc_total_blocks |
can_compress_scripts |
_ipc_alltime_visits |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FraudGrade
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,196 ▼575 | 12.26 ▼2.27 | 2.03 ▼0.23 | 45.19 ▲1.97 |
Dashboard /wp-admin | 1,605 ▼575 | 1.41 ▼4.16 | 15.35 ▼80.59 | 39.93 ▼4.99 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.05 ▲0.03 | 43.46 ▲5.05 | 45.28 ▲8.79 |
Add New Post /wp-admin/post-new.php | 1,715 ▲189 | 22.25 ▼0.94 | 701.49 ▲18.38 | 37.20 ▼20.18 |
Media Library /wp-admin/upload.php | 1,449 ▲46 | 4.21 ▲0.09 | 101.42 ▼3.87 | 44.58 ▼0.77 |
IP Review Settings /wp-admin/edit.php?post_type=ip_check&page=ip_check | 2,451 | 1.83 | 35.83 | 32.56 |
IP Review Cache /wp-admin/edit.php?post_type=ip_check | 1,282 | 1.95 | 37.85 | 41.91 |
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
- This plugin did not uninstall successfully, leaving 12 options in the database
- _ipc_alltime_visits
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- _ipc_total_nonblocks
- can_compress_scripts
- recovery_mode_email_last_sent
- _ipc_total_blocks
- _ipc_whitelisted
- db_upgraded
- ...
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ip_check
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- 244 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ip_check&page=ip_check
- > Warning in wp-content/plugins/fraudgrade/libraries/admin.php+560
in_array() expects parameter 2 to be array, string given
- > GET request to /wp-admin/edit.php?post_type=ip_check&page=ip_check
- > Warning in wp-content/plugins/fraudgrade/libraries/admin.php+410
Invalid argument supplied for foreach()
- > GET request to /wp-admin/edit.php?post_type=ip_check&page=ip_check
- > Compile error in wp-content/plugins/fraudgrade/views/widget.php+29
Cannot declare class ipvl_FraudGrade_Datagrid, because the name is already in use
- 23 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ip_check
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 23 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ip_check
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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 need to be fixed:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
- Screenshots: Screenshot #1 (Settings) image not found
fraudgrade/fraudgrade.php 77% from 13 tests
The main PHP script in "FraudGrade" version 2.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Description: Keep the plugin description shorter than 140 characters (currently 240 characters long)
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
Success! There were no dangerous files found in this plugin2,568 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 309 | 756 | 1,670 |
CSS | 2 | 3 | 0 | 509 |
JavaScript | 3 | 83 | 130 | 389 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 26.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 10 | 13.51% |
▷ Public methods | 74 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
2 PNG files occupy 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot1.png | 234.62KB | 64.64KB | ▼ 72.45% |
assets/images/flags16.png | 50.10KB | 18.91KB | ▼ 62.26% |