84% easy-captcha-by-croitre

Code Review | Easy Captcha by Croitre

WordPress plugin Easy Captcha by Croitre scored84%from 54 tests.

About plugin

  • Plugin page: easy-captcha-by-c...
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 24, 2020
  • Latest release: Feb 27, 2020
  • Number of updates: 17
  • Update frequency: every 0.4 days
  • Top authors: sushanttayade123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.55ms] Passed 4 tests

This is a short check of server-side resources used by Easy Captcha by Croitre
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.61 ▼8.24
Dashboard /wp-admin3.34 ▲0.0052.14 ▼12.61
Posts /wp-admin/edit.php3.40 ▲0.0451.58 ▲0.56
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.74 ▼21.91
Media Library /wp-admin/upload.php3.27 ▲0.0438.78 ▲3.12
Easy Captcha /wp-admin/options-general.php?page=ccs-easy-cap-settings3.2330.04

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 10 new options
New WordPress options
ccs_easycap_ans_secret
widget_recent-posts
db_upgraded
ccs_easycap_app_secret
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
ccs_easycap_tok_secret
can_compress_scripts
ccs_easycap_math_ops

Browser metrics Passed 4 tests

Easy Captcha by Croitre: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.531.86 ▼0.2939.94 ▼4.65
Dashboard /wp-admin2,199 ▲255.61 ▲0.1088.67 ▼15.6239.39 ▼6.74
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0438.97 ▲1.4136.68 ▲1.74
Add New Post /wp-admin/post-new.php1,529 ▲123.46 ▼0.05683.72 ▲7.9753.91 ▼8.04
Media Library /wp-admin/upload.php1,404 ▲14.22 ▼0.01104.65 ▲1.9847.24 ▲0.75
Easy Captcha /wp-admin/options-general.php?page=ccs-easy-cap-settings8441.9924.6635.89

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-captcha-by-croitre/ccs-easy-captcha.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: captcha code, arithmetic captcha, wordpress, captcha for wordpress, spam blocker...

easy-captcha-by-croitre/ccs-easy-captcha.php 85% from 13 tests

This is the main PHP file of "Easy Captcha by Croitre" version 0.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-captcha-by-croitre.php" instead of "ccs-easy-captcha.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.3.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin216 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15249216

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin