94% shieldsquare-connectors

Code Review | ShieldSquare - Real-time Bot Management Solution for Web Apps, Mobile & APIs

WordPress plugin ShieldSquare - Real-time Bot Management Solution for Web Apps, Mobile & APIs scored 94% from 54 tests.

About plugin

  • Plugin page: shieldsquare-conn...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.4
  • WordPress version: 5.8.1
  • First release: Jan 8, 2018
  • Latest release: Jul 19, 2018
  • Number of updates: 6
  • Update frequency: every 32.2 days
  • Top authors: nitin2020 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 611 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼146.08ms] Passed 4 tests

This is a short check of server-side resources used by ShieldSquare - Real-time Bot Management Solution for Web Apps, Mobile & APIs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.04 ▲0.3145.76 ▲18.90
Dashboard /wp-admin3.14 ▲0.0847.03 ▼17.41
Posts /wp-admin/edit.php3.20 ▲0.0848.39 ▼5.98
Add New Post /wp-admin/post-new.php5.50 ▲0.06100.89 ▼562.09
Media Library /wp-admin/upload.php3.09 ▲0.0836.00 ▲1.16
ShieldSquare Configuration /wp-admin/options-general.php?page=shieldsquare_settings_view3.0635.98

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 2 new options
New WordPress options
ss_dns_time
ss_ip

Browser metrics Passed 4 tests

This is an overview of browser requirements for ShieldSquare - Real-time Bot Management Solution for Web Apps, Mobile & APIs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲13615.88 ▲0.369.55 ▼4.3251.25 ▼4.43
Dashboard /wp-admin2,978 ▲445.90 ▼0.03158.89 ▼9.92123.96 ▼1.57
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0172.30 ▲1.95100.28 ▲6.32
Add New Post /wp-admin/post-new.php1,686 ▲318.75 ▲0.70389.07 ▲10.40121.31 ▲11.21
Media Library /wp-admin/upload.php1,812 ▼135.03 ▼0.00151.51 ▲5.22132.20 ▲5.58
ShieldSquare Configuration /wp-admin/options-general.php?page=shieldsquare_settings_view1,7782.2259.9782.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shieldsquare-connectors/shieldsquare.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: bot detection, security, crawler protection, scrapping protection, bot mitigation

shieldsquare-connectors/shieldsquare.php 92% from 13 tests

"ShieldSquare - Real-time Bot Management Solution for Web Apps, Mobile & APIs" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shieldsquare-connectors.php" instead of "shieldsquare.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
There were no executable files found in this plugin1,051 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP61593791,051

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity17.20
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity6.40
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods30
▷ Static methods516.67%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin