80% luciditi-age-assurance

Code Review | Luciditi Age Assurance Integration

WordPress plugin Luciditi Age Assurance Integration scored80%from 54 tests.

About plugin

  • Plugin page: luciditi-age-assu...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 9, 2023
  • Latest release: Oct 9, 2023
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: arissianluciditi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /13 total downloads

Benchmarks

Plugin footprint 65% from 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.33MB] [CPU: ▼5.71ms] Passed 4 tests

A check of server-side resources used by Luciditi Age Assurance Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3341.98 ▲6.09
Dashboard /wp-admin3.63 ▲0.3343.56 ▼4.40
Posts /wp-admin/edit.php3.74 ▲0.3947.96 ▼0.67
Add New Post /wp-admin/post-new.php6.21 ▲0.3382.18 ▼17.04
Media Library /wp-admin/upload.php3.55 ▲0.3335.44 ▼0.73
Age Assurance /wp-admin/options-general.php?page=luciditi_aa_settings3.5333.70

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: 2 new tables, 7 new options
New tables
wp_luciditi_tmp_sessions
wp_luciditi_sessions
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
luciditi_aa_db_version
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Luciditi Age Assurance Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.31 ▼1.281.92 ▲0.4241.41 ▲3.49
Dashboard /wp-admin2,213 ▲214.85 ▼0.1098.67 ▼17.9240.14 ▼4.78
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0237.73 ▼2.7533.87 ▼3.25
Add New Post /wp-admin/post-new.php1,523 ▲923.14 ▲5.65675.18 ▲14.2855.69 ▲1.52
Media Library /wp-admin/upload.php1,389 ▲14.19 ▼0.0794.88 ▼19.9043.13 ▼3.71
Age Assurance /wp-admin/options-general.php?page=luciditi_aa_settings1,0031.9628.4729.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_luciditi_sessions
    • wp_luciditi_tmp_sessions
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • luciditi_aa_db_version
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: privacy, luciditi, age estimation, api integration, age verification

luciditi-age-assurance/luciditi-age-assurance.php Passed 13 tests

The main file in "Luciditi Age Assurance Integration" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
101 characters long description:
Add frictionless, privacy-preserving Age Assurance using Luciditi Age Estimation or Age Verification.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,941 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP113326821,642
CSS5157175564
SVG300422
JavaScript45282313

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity45.00
▷ Minimum class complexity3.00
▷ Maximum class complexity86.00
Average method complexity4.74
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods47
▷ Static methods612.77%
▷ Public methods4391.49%
▷ Protected methods12.13%
▷ Private methods36.38%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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.45MB with 0.33MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/assets/img/bg.png463.79KB127.52KB▼ 72.50%