84% skt-nurcaptcha

Code Review | Skt NURCaptcha

WordPress plugin Skt NURCaptcha scored84%from 54 tests.

About plugin

  • Plugin page: skt-nurcaptcha
  • Plugin version: 3.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2011
  • Latest release: Nov 6, 2022
  • Number of updates: 105
  • Update frequency: every 38.7 days
  • Top authors: Sanskritforum (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /24,844 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.16MB] [CPU: ▲0.99ms] Passed 4 tests

An overview of server-side resources used by Skt NURCaptcha
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1840.22 ▲2.90
Dashboard /wp-admin3.46 ▲0.1644.28 ▼2.47
Posts /wp-admin/edit.php3.57 ▲0.2244.45 ▲0.29
Add New Post /wp-admin/post-new.php6.04 ▲0.1596.11 ▲3.24
Media Library /wp-admin/upload.php3.38 ▲0.1535.93 ▲4.92
Skt NURCaptcha /wp-admin/options-general.php?page=skt_nurcaptcha3.7049.48

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables
wp_sktnurclog
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Skt NURCaptcha
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲14014.25 ▼0.491.71 ▲0.0844.82 ▲6.14
Dashboard /wp-admin2,225 ▲365.86 ▲0.92102.19 ▼7.1339.91 ▼2.28
Posts /wp-admin/edit.php2,101 ▲152.00 ▲0.0034.31 ▼0.7633.85 ▲2.33
Add New Post /wp-admin/post-new.php1,557 ▲2118.32 ▼4.95601.40 ▼53.4662.70 ▲8.79
Media Library /wp-admin/upload.php1,407 ▲224.29 ▲0.07100.49 ▲0.3342.32 ▼0.16
Skt NURCaptcha /wp-admin/options-general.php?page=skt_nurcaptcha2,1422.4230.0640.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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 | 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/skt-nurcaptcha/skt-nurc-admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skt-nurcaptcha/skt-nurcaptcha.php:45

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

skt-nurcaptcha/skt-nurcaptcha.php 92% from 13 tests

The main PHP script in "Skt NURCaptcha" version 3.5.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 578 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,393 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP41492711,927
PO File2258276816
SVG101339
JavaScript2211308
CSS1103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions55
▷ Named functions55100.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
6 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/red.png23.31KB8.95KB▼ 61.62%
img/white.png23.73KB9.37KB▼ 60.52%
img/clean.png19.39KB8.56KB▼ 55.84%
img/blackglass.png22.65KB10.53KB▼ 53.52%
img/dark.png26.11KB3.78KB▼ 85.54%