90% my-recaptcha

Code Review | My reCaptcha

WordPress plugin My reCaptcha scored90%from 54 tests.

About plugin

  • Plugin page: my-recaptcha
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2015
  • Latest release: Mar 28, 2015
  • Number of updates: 9
  • Update frequency: every 0.7 days
  • Top authors: roidayan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,051 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.75ms] Passed 4 tests

Server-side resources used by My reCaptcha
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0332.98 ▼5.91
Dashboard /wp-admin3.34 ▼0.0044.83 ▼15.57
Posts /wp-admin/edit.php3.39 ▲0.0449.70 ▲3.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.39 ▼18.74
Media Library /wp-admin/upload.php3.27 ▲0.0435.27 ▲1.24
reCaptcha /wp-admin/options-general.php?page=my-recaptcha3.2331.16

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for My reCaptcha
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.27 ▼1.131.96 ▲0.1139.32 ▼2.04
Dashboard /wp-admin2,213 ▲255.89 ▲0.98100.81 ▼2.9841.36 ▼3.56
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0236.60 ▼1.2430.69 ▼3.64
Add New Post /wp-admin/post-new.php1,541 ▲1023.20 ▲4.88668.99 ▲62.0651.76 ▼2.83
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0296.01 ▼2.5242.71 ▼0.76
reCaptcha /wp-admin/options-general.php?page=my-recaptcha7972.0325.1625.11

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
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 97% 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 your attention:
  • Screenshots: Please add an image for screenshot #1 (screenshot)
Please take inspiration from this readme.txt

my-recaptcha/my-recaptcha.php Passed 13 tests

This is the main PHP file of "My reCaptcha" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
26 characters long description:
Google reCaptcha V2 plugin

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
Success! There were no dangerous files found in this plugin200 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34942198
Markdown1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.93KB11.31KB▼ 57.99%