84% age-gate-lite

Code Review | Age Gate Lite

WordPress plugin Age Gate Lite scored84%from 54 tests.

About plugin

  • Plugin page: age-gate-lite
  • Plugin version: 0.0.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0+
  • WordPress version: 6.3.1
  • First release: Nov 8, 2019
  • Latest release: Jul 13, 2022
  • Number of updates: 14
  • Update frequency: every 70.0 days
  • Top authors: siddhu09rocks (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /8,457 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Age Gate Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.21 ▼2.12
Dashboard /wp-admin3.34 ▲0.0455.89 ▲6.78
Posts /wp-admin/edit.php3.46 ▲0.1056.68 ▲0.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.58 ▼11.29
Media Library /wp-admin/upload.php3.24 ▲0.0141.84 ▲7.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Age Gate Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,003 ▲25715.32 ▲0.942.56 ▲0.7241.95 ▼6.03
Dashboard /wp-admin2,379 ▲1976.71 ▲0.85135.91 ▲17.2145.22 ▲2.29
Posts /wp-admin/edit.php2,288 ▲1993.60 ▲1.5858.55 ▲20.2034.72 ▼0.53
Add New Post /wp-admin/post-new.php1,545 ▲2623.11 ▲0.09643.13 ▼43.0936.32 ▼22.86
Media Library /wp-admin/upload.php1,427 ▲364.36 ▲0.1394.82 ▼10.4548.16 ▲0.84

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/age-gate-lite/age-gate-lite-settings.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (18 tag instead of maximum 10)
  • Tested up to: Version not formatted correctly
The official readme.txt might help

age-gate-lite/age-gate-lite.php Passed 13 tests

"Age Gate Lite" version 0.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
A lightweight, customisable age gate to lock content from younger audience.

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
No dangerous file extensions were detected302 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity9.00
▷ Minimum method complexity2.00
▷ Maximum method complexity16.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin