83% http-flood

Code Review | HTTP Flood

WordPress plugin HTTP Flood scored83%from 54 tests.

About plugin

  • Plugin page: http-flood
  • Plugin version: 1.0-1...
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Feb 3, 2018
  • Latest release: Feb 6, 2018
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: aydinantmen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /958 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.14ms] Passed 4 tests

A check of server-side resources used by HTTP Flood
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.49 ▼0.83
Dashboard /wp-admin3.32 ▼0.0250.63 ▼16.91
Posts /wp-admin/edit.php3.38 ▲0.0249.74 ▲4.76
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.92 ▼2.76
Media Library /wp-admin/upload.php3.25 ▲0.0237.88 ▲3.94

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • There were 1 file (1.22KB) illegally modified outside of "wp-content/plugins/http-flood/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables
wp_httpflood
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for HTTP Flood
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.37 ▲0.011.62 ▼0.1140.70 ▼4.05
Dashboard /wp-admin2,195 ▲155.61 ▲0.0090.54 ▲4.4340.69 ▼2.47
Posts /wp-admin/edit.php2,100 ▼31.95 ▲0.0038.19 ▼0.3537.12 ▲4.08
Add New Post /wp-admin/post-new.php1,526 ▼023.61 ▲0.15657.24 ▲35.6559.86 ▲7.21
Media Library /wp-admin/upload.php1,400 ▲64.26 ▲0.0895.17 ▼1.1143.04 ▲1.46

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/http-flood/index.php:14

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • 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)
You can look at the official readme.txt

http-flood/index.php 77% from 13 tests

The main file in "HTTP Flood" v. 1.0-1... serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 219 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("http-flood.php" instead of "index.php")
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.0-1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP155758

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 code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected