84% hidecaptcha

Code Review | ScolaCaptcha

WordPress plugin ScolaCaptcha scored84%from 54 tests.

About plugin

  • Plugin page: hidecaptcha
  • Plugin version: 1.0.11
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jan 22, 2019
  • Latest release: Aug 14, 2023
  • Number of updates: 24
  • Update frequency: every 69.8 days
  • Top authors: scolar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by ScolaCaptcha
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.67 ▼5.82
Dashboard /wp-admin3.31 ▲0.0144.63 ▼1.89
Posts /wp-admin/edit.php3.37 ▲0.0049.08 ▼0.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0080.27 ▼11.16
Media Library /wp-admin/upload.php3.24 ▲0.0035.57 ▲1.68

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

ScolaCaptcha: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲8613.50 ▼0.917.67 ▲5.7140.60 ▲0.30
Dashboard /wp-admin2,198 ▲185.61 ▲0.0192.51 ▲7.3537.21 ▼4.36
Posts /wp-admin/edit.php2,097 ▼31.95 ▼0.0439.40 ▲1.0735.83 ▲4.36
Add New Post /wp-admin/post-new.php1,526 ▼1123.19 ▲5.10657.42 ▲12.5358.72 ▼14.70
Media Library /wp-admin/upload.php1,403 ▲64.25 ▲0.1198.25 ▼1.2641.73 ▲0.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hidecaptcha/scola_captcha.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: google, recaptcha, contactform7

hidecaptcha/scola_captcha.php 92% from 13 tests

The principal PHP file in "ScolaCaptcha" v. 1.0.11 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("hidecaptcha.php" instead of "scola_captcha.php")

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
Success! There were no dangerous files found in this plugin22 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1027
CSS1106
PHP11105
Markdown1204

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin