89% toms-vaptcha

Code Review | TomS Vaptcha

WordPress plugin TomS Vaptcha scored89%from 54 tests.

About plugin

  • Plugin page: toms-vaptcha
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2021
  • Latest release: Mar 4, 2022
  • Number of updates: 12
  • Update frequency: every 7.2 days
  • Top authors: tomsneddon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,306 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.53MB] [CPU: ▼3.37ms] Passed 4 tests

This is a short check of server-side resources used by TomS Vaptcha
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5241.35 ▲2.84
Dashboard /wp-admin3.84 ▲0.5446.26 ▲0.42
Posts /wp-admin/edit.php3.96 ▲0.6046.97 ▲1.78
Add New Post /wp-admin/post-new.php6.42 ▲0.5384.50 ▼18.51
Media Library /wp-admin/upload.php3.77 ▲0.5339.76 ▲7.29
TomS Vaptcha /wp-admin/admin.php?page=toms-vaptcha-settings3.7339.40
Dashboard /wp-admin/admin.php?page=toms-wp3.8236.00

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

TomS Vaptcha: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,103 ▲35713.44 ▼0.944.35 ▲2.6741.26 ▲5.15
Dashboard /wp-admin2,506 ▲3174.87 ▼0.1099.53 ▼24.2070.35 ▲26.07
Posts /wp-admin/edit.php2,392 ▲3061.98 ▼0.1935.54 ▲0.6731.61 ▼5.55
Add New Post /wp-admin/post-new.php1,773 ▲24022.13 ▼1.04749.67 ▲65.5146.82 ▼6.37
Media Library /wp-admin/upload.php1,685 ▲2974.20 ▲0.0296.95 ▼1.1173.49 ▲29.77
TomS Vaptcha /wp-admin/admin.php?page=toms-vaptcha-settings1,4712.0925.0547.68
Dashboard /wp-admin/admin.php?page=toms-wp1,4282.1424.1637.02

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

toms-vaptcha/toms-vaptcha-home.php 77% from 13 tests

The primary PHP file in "TomS Vaptcha" version 1.1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.0")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 196 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("toms-vaptcha.php" instead of "toms-vaptcha-home.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,689 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP82404181,930
CSS4137286
PO File186105213
SVG211191
JSON10068
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity57.00
▷ Minimum class complexity31.00
▷ Maximum class complexity91.00
Average method complexity6.33
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods63
▷ Static methods00.00%
▷ Public methods6298.41%
▷ Protected methods00.00%
▷ Private methods11.59%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin