84% users-ultra-pro-recaptcha

Code Review | Users Ultra Pro reCaptcha 3.0 Add-on

WordPress plugin Users Ultra Pro reCaptcha 3.0 Add-on scored84%from 54 tests.

About plugin

  • Plugin page: users-ultra-pro-r...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: May 11, 2018
  • Latest release: Dec 18, 2020
  • Number of updates: 3
  • Update frequency: every 317.7 days
  • Top authors: UsersUltra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /869 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Users Ultra Pro reCaptcha 3.0 Add-on
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.19 ▲3.24
Dashboard /wp-admin3.31 ▲0.0145.26 ▼1.52
Posts /wp-admin/edit.php3.36 ▲0.0046.67 ▼2.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.28 ▼11.52
Media Library /wp-admin/upload.php3.23 ▲0.0031.35 ▼4.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Users Ultra Pro reCaptcha 3.0 Add-on: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.171.87 ▲0.1140.79 ▼4.07
Dashboard /wp-admin2,206 ▲215.84 ▼0.06105.16 ▲0.0837.90 ▼5.03
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0437.90 ▼2.5336.16 ▼1.09
Add New Post /wp-admin/post-new.php1,539 ▲2023.26 ▼0.26677.95 ▲6.2059.62 ▼3.13
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0196.38 ▼8.9844.11 ▲0.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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)
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
The following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/users-ultra-pro-recaptcha/index.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/users-ultra-pro-recaptcha/index.php:19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/users-ultra-pro-recaptcha/index.php on line 16
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/users-ultra-pro-recaptcha/index.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
3 plugin tags: spam control, members registration, recaptcha

users-ultra-pro-recaptcha/index.php 85% from 13 tests

"Users Ultra Pro reCaptcha 3.0 Add-on" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("users-ultra-pro-recaptcha.php" instead of "index.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 plugin4,956 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS4267912,468
Sass131922928
LESS121827907
SVG100414
PHP312325236
JavaScript1403

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
44 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/remove_1616.png0.19KB0.25KB0.00%
admin/img/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
admin/images/yahoo.png1.65KB0.64KB▼ 61.15%
admin/images/iconos-panel/recaptcha-add-ons.png7.06KB3.14KB▼ 55.51%
admin/img/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%