74% jse-captcha

Code Review | JSE Captcha

WordPress plugin JSE Captcha scored74%from 54 tests.

About plugin

  • Plugin page: jse-captcha
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 30, 2019
  • Latest release: Oct 5, 2019
  • Number of updates: 4
  • Update frequency: every 2.5 days
  • Top authors: mediacambridge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /606 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.24MB] [CPU: ▼51.00ms] Passed 4 tests

Analyzing server-side resources used by JSE Captcha
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7213.32 ▼27.72
Dashboard /wp-admin2.78 ▼0.5615.92 ▼54.55
Posts /wp-admin/edit.php2.78 ▼0.5716.07 ▼35.31
Add New Post /wp-admin/post-new.php2.78 ▼3.1016.78 ▼86.43
Media Library /wp-admin/upload.php2.78 ▼0.4414.54 ▼18.77
JSE Captcha /wp-admin/options-general.php?page=jse-captcha-settings2.7916.29

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
jse-captcha-contact
db_upgraded
jse-captcha-login
widget_recent-comments
jse-captcha-comments
widget_recent-posts
jse-captcha-register
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by JSE Captcha
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.72 ▼0.911.68 ▼0.0341.43 ▼7.83
Dashboard /wp-admin2,207 ▲165.81 ▲0.00101.17 ▼4.3337.62 ▼7.81
Posts /wp-admin/edit.php2,093 ▲71.99 ▼0.0638.16 ▲0.3737.21 ▲5.01
Add New Post /wp-admin/post-new.php1,517 ▲317.54 ▲0.01637.33 ▼43.1146.33 ▼1.24
Media Library /wp-admin/upload.php1,395 ▲44.18 ▼0.1198.22 ▼1.0243.08 ▼3.55
JSE Captcha /wp-admin/options-general.php?page=jse-captcha-settings8002.0323.8824.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/jse-captcha/jse-captcha.php+116
    Undefined variable: jse_captcha_register
  • Zombie WordPress options were found after uninstall: 10 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • jse-captcha-login
    • jse-captcha-comments
    • widget_recent-comments
    • jse-captcha-contact
    • jse-captcha-register

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=jse-captcha-settings
    • > Notice in wp-content/plugins/jse-captcha/jse-captcha.php+116
    Undefined variable: jse_captcha_register
    • > GET request to /wp-admin/options-general.php?page=jse-captcha-settings
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === jse-captcha === )
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

jse-captcha/jse-captcha.php Passed 13 tests

The main PHP file in "JSE Captcha" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
This plugin makes it easy to add the JSEcoin captcha to protect your comment forms from spam.

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
No dangerous file extensions were detected96 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141696

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
jsecoin.png5.18KB3.60KB▼ 30.57%