84% frontend-dashboard-captcha

Code Review | Frontend Dashboard Captcha

WordPress plugin Frontend Dashboard Captcha scored84%from 54 tests.

About plugin

  • Plugin page: frontend-dashboar...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Dec 9, 2017
  • Latest release: May 18, 2020
  • Number of updates: 12
  • Update frequency: every 74.3 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /11,627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.06ms] Passed 4 tests

Analyzing server-side resources used by Frontend Dashboard Captcha
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.39 ▼0.41
Dashboard /wp-admin3.31 ▼0.0448.30 ▼15.79
Posts /wp-admin/edit.php3.36 ▲0.0045.89 ▼2.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.30 ▼17.23
Media Library /wp-admin/upload.php3.23 ▲0.0037.37 ▼1.14

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Frontend Dashboard Captcha
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.24 ▼0.111.90 ▲0.2145.01 ▲1.70
Dashboard /wp-admin2,210 ▲335.61 ▼0.0587.71 ▼4.6139.75 ▼1.93
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0435.19 ▼1.5136.69 ▲0.92
Add New Post /wp-admin/post-new.php1,538 ▲1023.52 ▲0.46691.74 ▼7.7750.60 ▼9.31
Media Library /wp-admin/upload.php1,412 ▲94.31 ▲0.10100.50 ▼7.9444.64 ▼3.62

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/frontend-dashboard-captcha/vendor/captcha/ReCaptcha/RequestMethod/Post.php:44
    • > PHP Fatal error
      Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/frontend-dashboard-captcha/vendor/captcha/ReCaptcha/RequestMethod/SocketPost.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/frontend-dashboard-captcha/functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/frontend-dashboard-captcha/menu/FEDC_Menu.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/frontend-dashboard-captcha/vendor/captcha/ReCaptcha/RequestMethod/CurlPost.php:46

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: dashboard, register captcha, login captcha, frontend dashboard captcha

frontend-dashboard-captcha/frontend-dashboard-captcha.php Passed 13 tests

The main file in "Frontend Dashboard Captcha" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
103 characters long description:
Frontend Dashboard Captcha WordPress plugin is a supportive plugin for Frontend Dashboard again spam in

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin722 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP13177818722

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.70
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods48
▷ Static methods12.08%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants18
▷ Global constants633.33%
▷ Class constants1266.67%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin