10% captcha-novami

Code Review | Captcha Novami

WordPress plugin Captcha Novami scored 10% from 54 tests.

About plugin

  • Plugin page: captcha-novami
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 5.9.2
  • First release: Mar 17, 2020
  • Latest release: Dec 21, 2020
  • Number of updates: 14
  • Update frequency: every 19.9 days
  • Top authors: Minor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 409 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/captcha-novami/captcha-novami.php+94
    Use of undefined constant REST_REQUEST - assumed 'REST_REQUEST' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼0.02MB] [CPU: ▼293.68ms] Passed 4 tests

Analyzing server-side resources used by Captcha Novami
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0156.17 ▲6.70
Dashboard /wp-admin3.41 ▲0.0033.88 ▲0.65
Posts /wp-admin/edit.php3.64 ▲0.0037.27 ▲0.80
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.21 ▼1,176.13
Media Library /wp-admin/upload.php3.30 ▲0.0024.96 ▼0.02

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Captcha Novami
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲6115.81 ▲0.206.44 ▲0.832.23 ▲0.09
Dashboard /wp-admin2,888 ▲346.08 ▼0.10115.66 ▼22.49158.02 ▼3.82
Posts /wp-admin/edit.php2,688 ▼63.23 ▲0.0064.50 ▲1.11139.33 ▼2.64
Add New Post /wp-admin/post-new.php1,752 ▲8621.54 ▼0.23453.67 ▲26.60153.69 ▼6.79
Media Library /wp-admin/upload.php1,698 ▼05.48 ▲0.01145.28 ▲2.18186.32 ▼2.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/captcha-novami/uninstall.php
    • > /wp-content/plugins/captcha-novami/captcha-novami.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (No screenshots) image missing
Please take inspiration from this readme.txt

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

The entry point to "Captcha Novami" version 1.1 is a PHP file that has certain tags in its header comment area
98 characters long description:
Captcha Novami works like an invisible reCaptcha. No settings required. Just install and activate.

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 plugin85 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2233580
JavaScript1105

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity8.50
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods337.50%
▷ Protected methods00.00%
▷ Private methods562.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin