90% qomon

Code Review | Qomon Form

WordPress plugin Qomon Form scored 90% from 54 tests.

About plugin

  • Plugin page: qomon
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2023
  • Latest release: Sep 20, 2023
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: qomon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 22 total downloads

Benchmarks

Plugin footprint 83% 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.03MB] [CPU: ▼6.41ms] Passed 4 tests

This is a short check of server-side resources used by Qomon Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.47 ▼1.45
Dashboard /wp-admin3.34 ▲0.0445.72 ▼7.03
Posts /wp-admin/edit.php3.39 ▲0.0344.93 ▼1.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.66 ▼15.23
Media Library /wp-admin/upload.php3.27 ▲0.0337.80 ▲4.22

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Qomon Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲9314.75 ▲0.362.21 ▲0.0446.90 ▼2.30
Dashboard /wp-admin2,233 ▲455.91 ▲1.00105.33 ▼1.1139.98 ▼4.45
Posts /wp-admin/edit.php2,113 ▲242.00 ▼0.0339.42 ▼0.5934.80 ▲0.17
Add New Post /wp-admin/post-new.php6,596 ▲5,08229.34 ▲11.83883.36 ▲224.7353.94 ▼6.48
Media Library /wp-admin/upload.php1,409 ▲214.24 ▲0.04100.47 ▼4.0742.93 ▲0.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: form, block, qomon

qomon/qomon.php Passed 13 tests

The primary PHP file in "Qomon Form" version 1.0.0 is used by WordPress to initiate all plugin functionality
129 characters long description:
Easily insert your Qomon form in your site. By adding a shortcode [qomon-form] or even by adding a custom block created by Qomon.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin242 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File12835112
PHP22558102
JSON10024
SVG1003
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.28MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/qomon-form/form-example.png33.67KB6.22KB▼ 81.52%
public/images/readme/screenshot-3.png23.15KB5.10KB▼ 77.99%
public/images/qomon-form/shortcode-filled.png23.15KB5.10KB▼ 77.99%
public/images/readme/screenshot-1.png43.12KB11.20KB▼ 74.02%
public/images/readme/screenshot-4.png33.67KB6.22KB▼ 81.52%