84% ageverify-by-inverite

Code Review | AgeVerify by Inverite

WordPress plugin AgeVerify by Inverite scored84%from 54 tests.

About plugin

  • Plugin page: ageverify-by-inve...
  • Plugin version: 2.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Dec 13, 2017
  • Latest release: Sep 20, 2020
  • Number of updates: 9
  • Update frequency: every 112.7 days
  • Top authors: inverite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,450 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by AgeVerify by Inverite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.02 ▲0.13
Dashboard /wp-admin3.31 ▲0.0149.29 ▼3.54
Posts /wp-admin/edit.php3.37 ▲0.0050.11 ▼1.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0086.56 ▼8.50
Media Library /wp-admin/upload.php3.24 ▲0.0036.99 ▲1.98

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by AgeVerify by Inverite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.25 ▼0.111.85 ▼0.1044.54 ▲1.55
Dashboard /wp-admin2,192 ▲155.67 ▲0.0981.56 ▼8.7939.42 ▼3.73
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0333.34 ▼2.9535.50 ▼1.53
Add New Post /wp-admin/post-new.php1,526 ▼023.50 ▼0.17688.09 ▲35.2858.87 ▲7.35
Media Library /wp-admin/upload.php1,394 ▼94.27 ▲0.0595.99 ▼8.1844.05 ▼2.12

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/ageverify-by-inverite/class-wc-integration-iv-ageverify.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ageverify-by-inverite/iv-ageverify.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: kyc, id-verification, age-verification

ageverify-by-inverite/iv-ageverify.php 92% from 13 tests

"AgeVerify by Inverite" version 2.1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ageverify-by-inverite.php" instead of "iv-ageverify.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,647 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP14188731,453
JavaScript1173194

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.69
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits9
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods59
▷ Static methods35.08%
▷ Public methods5186.44%
▷ Protected methods00.00%
▷ Private methods813.56%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants8
▷ Global constants8100.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