90% really-simple-captcha

Code Review | Really Simple CAPTCHA

WordPress plugin Really Simple CAPTCHA scored90%from 54 tests.

About plugin

  • Plugin page: really-simple-cap...
  • Plugin version: 2.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2009
  • Latest release: May 23, 2023
  • Number of updates: 96
  • Update frequency: every 54.0 days
  • Top authors: takayukister (100%)

Code review

54 tests

User reviews

125 reviews

Install metrics

500,000+ active /8,429,624 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.89ms] Passed 4 tests

This is a short check of server-side resources used by Really Simple CAPTCHA
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.03 ▼3.81
Dashboard /wp-admin3.35 ▲0.0545.87 ▼7.27
Posts /wp-admin/edit.php3.40 ▲0.0549.18 ▲2.73
Add New Post /wp-admin/post-new.php5.93 ▲0.0594.85 ▲1.64
Media Library /wp-admin/upload.php3.27 ▲0.0432.45 ▼2.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Really Simple CAPTCHA
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.67 ▼0.624.94 ▲2.8844.03 ▼0.93
Dashboard /wp-admin2,209 ▲215.88 ▲0.9997.59 ▼4.5538.18 ▼4.57
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0039.74 ▲2.9634.97 ▼2.01
Add New Post /wp-admin/post-new.php1,514 ▼017.54 ▲0.02628.68 ▼59.0651.66 ▲0.16
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0894.88 ▼3.6841.79 ▼1.45

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: captcha

really-simple-captcha/really-simple-captcha.php Passed 13 tests

The main PHP file in "Really Simple CAPTCHA" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
138 characters long description:
Really Simple CAPTCHA is a CAPTCHA module intended to be called from other plugins. It is originally created for my Contact Form 7 plugin.

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
No dangerous file extensions were detected214 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26767214

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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