89% wp-ticket-ultra-recaptcha

Code Review | WP Ticket Ultra reCaptcha Add-on

WordPress plugin WP Ticket Ultra reCaptcha Add-on scored89%from 54 tests.

About plugin

  • Plugin page: wp-ticket-ultra-r...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Dec 17, 2017
  • Latest release: Jan 8, 2018
  • Number of updates: 5
  • Update frequency: every 4.4 days
  • Top authors: UsersUltra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WP Ticket Ultra reCaptcha Add-on
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.57 ▼0.59
Dashboard /wp-admin3.33 ▲0.0242.99 ▼3.92
Posts /wp-admin/edit.php3.38 ▲0.0245.07 ▼7.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.88 ▼13.50
Media Library /wp-admin/upload.php3.25 ▲0.0231.42 ▼4.71

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Ticket Ultra reCaptcha Add-on
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.11 ▼0.1513.08 ▲11.2542.55 ▼4.20
Dashboard /wp-admin2,203 ▲155.80 ▼0.0793.24 ▼12.1237.23 ▼3.78
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0338.96 ▲2.4733.34 ▲0.33
Add New Post /wp-admin/post-new.php1,537 ▲423.17 ▼0.09668.77 ▼23.3051.95 ▼21.34
Media Library /wp-admin/upload.php1,385 ▼34.17 ▼0.0796.25 ▼18.1440.10 ▼8.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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)
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
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 shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (reCaptcha on Registration Form), #2 (reCaptcha on Login Form), #3 (reCaptcha on Password Reset Form)
The official readme.txt might help

wp-ticket-ultra-recaptcha/index.php 92% from 13 tests

This is the main PHP file of "WP Ticket Ultra reCaptcha Add-on" version 1.0.1, 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: The principal plugin file should be the same as the plugin slug ("wp-ticket-ultra-recaptcha.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 plugin78 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2391278

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin