84% quick-age-verification

Code Review | Quick Age Verification

WordPress plugin Quick Age Verification scored84%from 54 tests.

About plugin

  • Plugin page: quick-age-verific...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 12, 2020
  • Latest release: Nov 23, 2021
  • Number of updates: 9
  • Update frequency: every 64.7 days
  • Top authors: cookersdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /456 total downloads

Benchmarks

Plugin footprint 83% 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.03MB] [CPU: ▼2.79ms] Passed 4 tests

Server-side resources used by Quick Age Verification
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.46 ▼0.44
Dashboard /wp-admin3.33 ▲0.0351.56 ▼0.83
Posts /wp-admin/edit.php3.38 ▲0.0347.31 ▼1.81
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.45 ▼8.09
Media Library /wp-admin/upload.php3.25 ▲0.0334.40 ▲1.21
Quick Age Verification Options /wp-admin/options-general.php?page=quick_age_verification3.2436.48

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Quick Age Verification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18413.98 ▼0.626.06 ▲4.3249.44 ▲6.81
Dashboard /wp-admin2,204 ▲135.76 ▲0.87131.47 ▲14.9053.41 ▲9.43
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0339.41 ▲1.5135.40 ▲4.28
Add New Post /wp-admin/post-new.php1,517 ▲323.57 ▲6.06609.65 ▼99.1547.27 ▼10.15
Media Library /wp-admin/upload.php1,392 ▲44.14 ▼0.0495.59 ▼1.7445.39 ▲2.84
Quick Age Verification Options /wp-admin/options-general.php?page=quick_age_verification1,1043.0540.3137.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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: Call to undefined function add_action() in wp-content/plugins/quick-age-verification/qav_options.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-age-verification/qav_options.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: age verification, age restriction, age check

quick-age-verification/quick-age-verification.php Passed 13 tests

The main file in "Quick Age Verification" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
32 characters long description:
Verify the age of website users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin198 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25524158
CSS12025
JavaScript14015

PHP code Passed 2 tests

This is a very shot review of 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.19
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin