90% affiliates-recaptcha

Code Review | Affiliates reCAPTCHA

WordPress plugin Affiliates reCAPTCHA scored90%from 54 tests.

About plugin

  • Plugin page: affiliates-recaptcha
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.7
  • WordPress version: 6.3.1
  • First release: Oct 14, 2015
  • Latest release: Apr 8, 2021
  • Number of updates: 12
  • Update frequency: every 167.0 days
  • Top authors: itthinx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Affiliates reCAPTCHA
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.65 ▼7.09
Dashboard /wp-admin3.31 ▲0.0145.04 ▼6.93
Posts /wp-admin/edit.php3.36 ▲0.0147.34 ▲3.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.93 ▼15.08
Media Library /wp-admin/upload.php3.23 ▲0.0132.86 ▲0.74

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Affiliates reCAPTCHA
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼0.954.09 ▲2.1041.55 ▼1.58
Dashboard /wp-admin2,206 ▲155.84 ▼0.07101.78 ▼11.1043.30 ▼5.81
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0136.99 ▲0.6734.77 ▲2.57
Add New Post /wp-admin/post-new.php1,543 ▲623.03 ▼0.40636.20 ▼2.3751.09 ▲1.63
Media Library /wp-admin/upload.php1,382 ▼94.18 ▼0.0496.19 ▲0.1840.13 ▼4.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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 | 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
No output text or server-side errors detected 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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: captcha, affiliate marketing, recaptcha, affiliate, affiliates

affiliates-recaptcha/affiliates-recaptcha.php 92% from 13 tests

The main PHP script in "Affiliates reCAPTCHA" version 2.1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin345 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3102189330
Markdown17015

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin