84% cartpauj-register-captcha

Code Review | Cartpauj Register Captcha

WordPress plugin Cartpauj Register Captcha scored84%from 54 tests.

About plugin

  • Plugin page: cartpauj-register...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 16, 2011
  • Latest release: Aug 20, 2023
  • Number of updates: 26
  • Update frequency: every 165.2 days
  • Top authors: cartpauj (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

3,000+ active /31,601 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.01MB] [CPU: ▼4.95ms] Passed 4 tests

Analyzing server-side resources used by Cartpauj Register Captcha
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.32 ▼3.79
Dashboard /wp-admin3.31 ▲0.0156.13 ▼1.28
Posts /wp-admin/edit.php3.36 ▲0.0154.13 ▼1.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.11 ▼12.88
Media Library /wp-admin/upload.php3.24 ▲0.0140.81 ▲1.81

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Cartpauj Register Captcha
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.30 ▼1.094.65 ▲2.7949.48 ▲3.68
Dashboard /wp-admin2,224 ▲215.85 ▲0.99100.40 ▼9.5237.56 ▼1.11
Posts /wp-admin/edit.php2,097 ▼32.00 ▼0.0137.71 ▼1.1533.05 ▼5.98
Add New Post /wp-admin/post-new.php1,545 ▲1423.21 ▼0.00613.81 ▼51.7170.95 ▲10.52
Media Library /wp-admin/upload.php1,394 ▼64.18 ▼0.13100.27 ▼11.4746.58 ▼6.41

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 detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cartpauj-register-captcha/cartpauj-register-captcha.php
    • > /wp-content/plugins/cartpauj-register-captcha/vendor/captcha/captcha.class.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: captcha, register, register captcha, registration captcha, captcha form...

cartpauj-register-captcha/cartpauj-register-captcha.php Passed 13 tests

Analyzing the main PHP file in "Cartpauj Register Captcha" version 2.0.0
81 characters long description:
Adds a captcha form to WordPress registration page to prevent SPAM registrations.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected174 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34333174

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin