90% nf-captcha

Code Review | NF Captcha

WordPress plugin NF Captcha scored90%from 54 tests.

About plugin

  • Plugin page: nf-captcha
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2016
  • Latest release: Feb 4, 2016
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: macnetic-labs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /913 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by NF Captcha
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.80 ▼7.74
Dashboard /wp-admin3.31 ▼0.0449.99 ▼19.93
Posts /wp-admin/edit.php3.36 ▲0.0049.42 ▼0.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.99 ▼12.55
Media Library /wp-admin/upload.php3.23 ▲0.0039.99 ▲3.77

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by NF Captcha
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.33 ▼0.041.89 ▼0.1943.29 ▲0.43
Dashboard /wp-admin2,195 ▲245.55 ▼0.0186.66 ▼19.0839.38 ▼4.95
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0040.13 ▼2.0335.09 ▲0.79
Add New Post /wp-admin/post-new.php1,526 ▼2523.01 ▲5.08659.59 ▲27.7855.89 ▼6.91
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0399.72 ▲3.3742.40 ▼7.16

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 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
7 plugin tags: really simple captcha, spam, captcha, antispam, ninja forms...

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

The entry point to "NF Captcha" version 1.0 is a PHP file that has certain tags in its header comment area
87 characters long description:
A plugin to add Really Simple CAPTCHA. Includes the option for custom background-color.

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
Success! There were no dangerous files found in this plugin305 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22013207
PO File2292888
JavaScript11010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.64
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%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.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
There are no PNG files in this plugin