84% agecheck

Code Review | AgeChecked for WooCommerce

WordPress plugin AgeChecked for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: agecheck
  • Plugin version: 1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.7.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2017
  • Latest release: May 12, 2021
  • Number of updates: 27
  • Update frequency: every 46.2 days
  • Top authors: agecheckeddev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,293 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.64ms] Passed 4 tests

This is a short check of server-side resources used by AgeChecked for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0733.26 ▼6.98
Dashboard /wp-admin3.32 ▲0.0248.57 ▲1.52
Posts /wp-admin/edit.php3.37 ▲0.0242.59 ▼4.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.33 ▼7.55
Media Library /wp-admin/upload.php3.24 ▲0.0235.45 ▲0.12

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

AgeChecked for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.24 ▼0.291.88 ▲0.3545.15 ▲4.15
Dashboard /wp-admin2,198 ▲215.64 ▲0.0490.38 ▲3.7074.54 ▲31.43
Posts /wp-admin/edit.php2,118 ▲182.00 ▲0.0234.35 ▼0.1431.16 ▼7.64
Add New Post /wp-admin/post-new.php1,539 ▲1323.50 ▼0.08658.30 ▼11.18152.73 ▲80.16
Media Library /wp-admin/upload.php1,415 ▲214.19 ▲0.0292.01 ▼48.5871.79 ▲8.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just 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/agecheck/agecheck.php:70

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in agecheck/assets to your readme.txt
You can look at the official readme.txt

agecheck/agecheck.php Passed 13 tests

The principal PHP file in "AgeChecked for WooCommerce" v. 1.10 is loaded by WordPress automatically on each request
58 characters long description:
Perform age verifications with AgeChecked for WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin680 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions20100.00%
▷ Anonymous functions00.00%
▷ 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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/images/agechecked-logo.png6.73KB3.60KB▼ 46.53%
assets/images/agechecked-logo.png6.73KB3.60KB▼ 46.53%