89% ultimate-wp-captcha

Code Review | Ultimate WP Captcha

WordPress plugin Ultimate WP Captcha scored89%from 54 tests.

About plugin

  • Plugin page: ultimate-wp-captcha
  • Plugin version: 1.1.8
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Jun 23, 2021
  • Latest release: Oct 6, 2023
  • Number of updates: 28
  • Update frequency: every 29.9 days
  • Top authors: khanzeeshan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,500 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
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.41ms] Passed 4 tests

A check of server-side resources used by Ultimate WP Captcha
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.10 ▲5.17
Dashboard /wp-admin3.47 ▲0.1643.10 ▼3.58
Posts /wp-admin/edit.php3.58 ▲0.2345.76 ▼2.64
Add New Post /wp-admin/post-new.php6.05 ▲0.1690.20 ▼11.63
Media Library /wp-admin/upload.php3.39 ▲0.1636.76 ▲4.21

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
uwc_version
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate WP Captcha
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.33 ▼0.047.71 ▲6.1843.48 ▲5.61
Dashboard /wp-admin2,211 ▲405.56 ▼0.0281.58 ▼6.3340.46 ▼3.87
Posts /wp-admin/edit.php2,116 ▲162.03 ▲0.0036.15 ▼2.7337.92 ▲3.72
Add New Post /wp-admin/post-new.php1,539 ▲1323.64 ▲0.14663.11 ▲58.0560.18 ▲11.21
Media Library /wp-admin/upload.php1,416 ▲134.20 ▲0.0497.03 ▼0.5143.69 ▲0.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • uwc_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: recaptcha, woocommerce recaptcha, wp recaptcha, hcaptcha, wp hcaptcha

ultimate-wp-captcha/ultimate-wp-captcha.php 85% from 13 tests

"Ultimate WP Captcha" version 1.1.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Description: Please don't use more than 140 characters for the plugin description (currently 218 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
There were no executable files found in this plugin633 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP623373617
CSS10016

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity22.00
▷ Minimum class complexity4.00
▷ Maximum class complexity34.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods39
▷ Static methods12.56%
▷ Public methods3897.44%
▷ Protected methods00.00%
▷ Private methods12.56%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG images were found in this plugin