94% really-simple-captcha-for-buddypress

Code Review | Really Simple CAPTCHA for Buddypress

WordPress plugin Really Simple CAPTCHA for Buddypress scored 94% from 54 tests.

About plugin

  • Plugin page: really-simple-cap...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 5.8.1
  • First release: Oct 2, 2014
  • Latest release: May 26, 2015
  • Number of updates: 12
  • Update frequency: every 20.0 days
  • Top authors: fruitshakes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 7,236 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼143.01ms] Passed 4 tests

Server-side resources used by Really Simple CAPTCHA for Buddypress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0032.56 ▼1.65
Dashboard /wp-admin3.06 ▲0.0050.68 ▲3.23
Posts /wp-admin/edit.php3.11 ▲0.0044.44 ▲0.66
Add New Post /wp-admin/post-new.php5.42 ▼0.0286.08 ▼574.08
Media Library /wp-admin/upload.php3.00 ▲0.0032.91 ▲3.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Really Simple CAPTCHA for Buddypress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.83 ▲0.3010.51 ▼3.6145.71 ▼2.06
Dashboard /wp-admin2,970 ▲365.86 ▼0.08145.68 ▼3.79105.64 ▼2.75
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0167.33 ▼4.4588.07 ▲4.25
Add New Post /wp-admin/post-new.php1,683 ▲1118.37 ▼0.37374.94 ▼7.83110.09 ▼0.21
Media Library /wp-admin/upload.php1,810 ▲35.03 ▼0.00153.16 ▼0.95126.01 ▲8.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/really-simple-captcha-for-buddypress/really-simple-captcha-for-buddypress.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === really-simple-captcha-for-buddypress === )
The official readme.txt is a good inspiration

really-simple-captcha-for-buddypress/really-simple-captcha-for-buddypress.php 92% from 13 tests

"Really Simple CAPTCHA for Buddypress" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 176 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1262652

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected