83% math-captcha-for-elementor-forms

Code Review | Math Captcha for Elementor Forms

WordPress plugin Math Captcha for Elementor Forms scored83%from 54 tests.

About plugin

  • Plugin page: math-captcha-for-...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Mar 9, 2021
  • Latest release: Oct 8, 2021
  • Number of updates: 26
  • Update frequency: every 8.2 days
  • Top authors: albanotoska (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /12,356 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.87ms] Passed 4 tests

This is a short check of server-side resources used by Math Captcha for Elementor Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.65 ▼0.90
Dashboard /wp-admin3.33 ▼0.0149.55 ▼21.14
Posts /wp-admin/edit.php3.38 ▲0.0351.25 ▲6.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.12 ▼11.22
Media Library /wp-admin/upload.php3.25 ▲0.0339.38 ▲1.78
BS Math Captcha for Elementor /wp-admin/options-general.php?page=bs_math_captcha_for_elementor_option3.2033.48

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
bs_math_captcha_signs_minus
bs_math_captcha_signs_plus
widget_theysaidso_widget
widget_recent-comments
bs_math_captcha_for_elementor_error
bs_math_captcha_signs_multiply
theysaidso_admin_options

Browser metrics Passed 4 tests

Math Captcha for Elementor Forms: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15913.70 ▼0.8511.46 ▲9.9052.52 ▲11.66
Dashboard /wp-admin2,199 ▲225.57 ▼0.0093.98 ▼10.3545.16 ▼1.09
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0841.86 ▲6.8738.31 ▲1.92
Add New Post /wp-admin/post-new.php1,529 ▼1023.13 ▲0.01697.30 ▼1.4754.12 ▼0.25
Media Library /wp-admin/upload.php1,407 ▲74.13 ▼0.0796.84 ▼4.3545.18 ▲1.25
BS Math Captcha for Elementor /wp-admin/options-general.php?page=bs_math_captcha_for_elementor_option8352.0127.1127.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 10 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • bs_math_captcha_signs_multiply
    • bs_math_captcha_for_elementor_error
    • bs_math_captcha_signs_minus
    • bs_math_captcha_signs_plus
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=bs_math_captcha_for_elementor_option
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=bs_math_captcha_for_elementor_option
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Easy to use interface.)
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

math-captcha-for-elementor-forms/bs_math_captcha_for_elementor.php 92% from 13 tests

Analyzing the main PHP file in "Math Captcha for Elementor Forms" version 1.1.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("math-captcha-for-elementor-forms.php" instead of "bs_math_captcha_for_elementor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin234 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32512125
PHP1516105
CSS1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png13.31KB5.13KB▼ 61.47%