90% squawk-forms

Code Review | Squawk Forms

WordPress plugin Squawk Forms scored 90% from 54 tests.

About plugin

  • Plugin page: squawk-forms
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.4.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Jun 6, 2023
  • Latest release: Aug 22, 2023
  • Number of updates: 9
  • Update frequency: every 8.6 days
  • Top authors: matiasescudero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 80 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.04ms] Passed 4 tests

An overview of server-side resources used by Squawk Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.98 ▼8.45
Dashboard /wp-admin3.31 ▲0.0053.78 ▼1.51
Posts /wp-admin/edit.php3.36 ▲0.0049.92 ▲0.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.36 ▲6.62
Media Library /wp-admin/upload.php3.23 ▲0.0040.11 ▲1.63

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Squawk Forms: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼2513.33 ▼1.411.85 ▼1.3346.21 ▼1.77
Dashboard /wp-admin2,206 ▼04.85 ▼0.21108.33 ▼4.3543.45 ▼0.59
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0339.99 ▲4.2035.21 ▲2.51
Add New Post /wp-admin/post-new.php1,519 ▼1423.53 ▲0.24651.91 ▼115.9357.92 ▲2.30
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0298.60 ▼2.4144.59 ▼0.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: amazon ses, google recaptcha, contact form

squawk-forms/index.php 92% from 13 tests

This is the main PHP file of "Squawk Forms" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("squawk-forms.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,143 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP20315731,088
JSON14045
JavaScript7007
CSS3003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods53
▷ Static methods00.00%
▷ Public methods53100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin