Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/floodwarningsapi/fw_api.php+342
Undefined variable: hard
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.77ms] Passed 4 tests
This is a short check of server-side resources used by FloodWarningsAPI
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.47 ▼2.71 |
Dashboard /wp-admin | 3.38 ▲0.03 | 45.79 ▼17.36 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 43.68 ▼0.30 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.56 ▼6.69 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.31 ▲4.80 |
FloodWarningsAPI /wp-admin/options-general.php?page=fwapi | 3.27 | 32.20 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=flood_warning | 3.30 | 39.92 |
Add New /wp-admin/post-new.php?post_type=flood_warning | 3.44 | 55.85 |
FloodWarnings /wp-admin/edit.php?post_type=flood_warning | 3.35 | 40.78 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
fw_radius |
can_compress_scripts |
category_children |
theysaidso_admin_options |
fw_latitude_fieldname |
fw_longitude_fieldname |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for FloodWarningsAPI
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲41 | 14.23 ▼0.53 | 1.70 ▼0.26 | 39.24 ▼4.16 |
Dashboard /wp-admin | 2,227 ▲50 | 5.66 ▼0.00 | 86.30 ▼4.49 | 35.43 ▼2.18 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.99 ▼0.04 | 36.86 ▼0.71 | 31.00 ▼5.31 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.27 ▲0.12 | 603.76 ▼15.88 | 67.03 ▲9.97 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.22 ▲0.01 | 96.38 ▼0.67 | 43.72 ▼0.38 |
FloodWarningsAPI /wp-admin/options-general.php?page=fwapi | 841 | 1.99 | 28.39 | 28.43 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=flood_warning | 1,490 | 2.13 | 32.61 | 36.54 |
Add New /wp-admin/post-new.php?post_type=flood_warning | 2,421 | 7.60 | 188.82 | 72.43 |
FloodWarnings /wp-admin/edit.php?post_type=flood_warning | 1,146 | 1.98 | 37.19 | 30.13 |
Uninstaller [IO: ▲0.03MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/floodwarningsapi/fw_api.php+374
Trying to access array offset on value of type null
- This plugin has failed uninstalling correctly, leaving 4 files (0.03MB) in the plugin directory
- (new file) readme.txt
- (new file) 1.0/fw_api.php
- (new file) fw_api.php
- (new file) 1.0/readme.txt
- This plugin did not uninstall successfully, leaving 11 options in the database
- db_upgraded
- widget_theysaidso_widget
- fw_latitude_fieldname
- widget_recent-comments
- fw_radius
- widget_recent-posts
- fw_longitude_fieldname
- can_compress_scripts
- category_children
- fw_api_key_shoothill
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/floodwarningsapi/fw_api.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/floodwarningsapi/1.0/fw_api.php:42
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== floodwarningsapi ===
)
floodwarningsapi/fw_api.php 92% from 13 tests
The entry point to "FloodWarningsAPI" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("floodwarningsapi.php" instead of "fw_api.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin257 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 81 | 51 | 257 |
PHP code Passed 2 tests
An overview 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.27 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin