84% querywall

Code Review | QueryWall: Plug'n Play Firewall

WordPress plugin QueryWall: Plug'n Play Firewall scored84%from 54 tests.

About plugin

  • Plugin page: querywall
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.0
  • WordPress version: 6.3.1
  • First release: Sep 24, 2015
  • Latest release: Oct 23, 2018
  • Number of updates: 28
  • Update frequency: every 40.2 days
  • Top authors: 4ley (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active /10,998 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼2.70ms] Passed 4 tests

A check of server-side resources used by QueryWall: Plug'n Play Firewall
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1343.88 ▲1.66
Dashboard /wp-admin3.49 ▲0.1958.57 ▼0.01
Posts /wp-admin/edit.php3.61 ▲0.2552.50 ▲1.33
Add New Post /wp-admin/post-new.php6.07 ▲0.1987.23 ▼13.77
Media Library /wp-admin/upload.php3.41 ▲0.1942.03 ▲5.03
Rules /wp-admin/admin.php?page=querywall-firewall-rules3.3836.78
Monitor /wp-admin/admin.php?page=querywall3.4043.76
Settings /wp-admin/admin.php?page=querywall-settings3.3834.86

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables
wp_qwall_monitor
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for QueryWall: Plug'n Play Firewall
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.33 ▼0.051.80 ▼0.6645.50 ▲2.71
Dashboard /wp-admin2,226 ▲495.59 ▼0.1288.29 ▼3.9938.82 ▼1.93
Posts /wp-admin/edit.php2,128 ▲282.01 ▲0.0534.04 ▼1.1435.28 ▲0.37
Add New Post /wp-admin/post-new.php1,551 ▲2323.38 ▲0.25663.55 ▼26.0652.75 ▲3.08
Media Library /wp-admin/upload.php1,431 ▲314.18 ▼0.1399.17 ▼11.6542.22 ▼3.24
Rules /wp-admin/admin.php?page=querywall-firewall-rules8921.9922.0325.52
Monitor /wp-admin/admin.php?page=querywall1,0112.0325.6427.54
Settings /wp-admin/admin.php?page=querywall-settings9552.0023.3429.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 12× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/querywall/core/class-qwall-monitor.php
    • > /wp-content/plugins/querywall/core/class-qwall-firewall.php
    • > /wp-content/plugins/querywall/core/class-qwall-notice.php
    • > /wp-content/plugins/querywall/core/class-qwall-dic.php
    • > /wp-content/plugins/querywall/core/class-qwall-core.php
    • > /wp-content/plugins/querywall/core/class-qwall-admin.php
    • > /wp-content/plugins/querywall/core/class-qwall-firewall-rules.php
    • > /wp-content/plugins/querywall/core/class-qwall-settings.php
    • > /wp-content/plugins/querywall/core/class-qwall-util.php
    • > /wp-content/plugins/querywall/querywall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 43 tag instead of maximum 10
Please take inspiration from this readme.txt

querywall/querywall.php 92% from 13 tests

The primary PHP file in "QueryWall: Plug'n Play Firewall" version 1.1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 163 characters long)

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 detected854 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP12291553854

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity9.00
▷ Minimum class complexity2.00
▷ Maximum class complexity22.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods58
▷ Static methods1932.76%
▷ Public methods4882.76%
▷ Protected methods00.00%
▷ Private methods1017.24%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin