Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼2.66ms] Passed 4 tests
Server-side resources used by ThreatPoint IP Reputation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 26.27 ▼13.40 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.53 ▲3.35 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.99 ▼2.57 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 106.34 ▲9.11 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.50 ▲1.98 |
ThreatPoint IP Rep /wp-admin/options-general.php?page=ThreatPoint-api-page | 3.19 | 28.68 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ThreatPoint IP Reputation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.67 ▼0.76 | 1.72 ▼0.09 | 43.50 ▼0.67 |
Dashboard /wp-admin | 2,213 ▲28 | 5.86 ▲0.04 | 103.18 ▼2.60 | 45.80 ▲0.62 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.05 | 37.33 ▼2.39 | 32.37 ▼4.70 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 18.63 ▼4.46 | 612.89 ▼50.74 | 56.76 ▼2.18 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.19 ▼0.07 | 96.78 ▼5.39 | 40.83 ▼3.47 |
ThreatPoint IP Rep /wp-admin/options-general.php?page=ThreatPoint-api-page | 1,056 | 18.35 | 539.99 | 81.69 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 23 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ThreatPoint-api-page
- > Notice in wp-content/plugins/threatpoint-api/Threatpoint-api.php+276
Trying to access array offset on value of type bool
SRP 50% from 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 following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/threatpoint-api/Threatpoint-api.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=ThreatPoint-api-page
- > Security (warning) in unknown
https://public.flourish.studio/resources/embed.js 16 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
threatpoint-api/Threatpoint-api.php 85% from 13 tests
The primary PHP file in "ThreatPoint IP Reputation" version 2.6 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 ("threatpoint-api.php" instead of "Threatpoint-api.php")
- Description: Keep the plugin description shorter than 140 characters (currently 266 characters long)
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
Good job! No executable or dangerous file extensions detected673 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 141 | 18 | 673 |
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.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected