10% hngamers-atavism-user-verification

Code Review | HNGamers Atavism User Verification

WordPress plugin HNGamers Atavism User Verification scored10%from 54 tests.

About plugin

  • Plugin page: hngamers-atavism-...
  • Plugin version: 0.0.11
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2022
  • Latest release: Nov 24, 2023
  • Number of updates: 14
  • Update frequency: every 29.0 days
  • Top authors: thevisad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /799 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/hngamers-atavism-user-verification/atavism-verify.php+23
    Uncaught Error: Class 'hngamers_atavism_core' not found in wp-content/plugins/hngamers-atavism-user-verification/atavism-verify.php:23
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

An overview of server-side resources used by HNGamers Atavism User Verification
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.14 ▼2.97
Dashboard /wp-admin3.31 ▲0.0047.83 ▼2.67
Posts /wp-admin/edit.php3.36 ▲0.0046.43 ▼1.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.17 ▼5.85
Media Library /wp-admin/upload.php3.23 ▲0.0033.94 ▼2.40

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

HNGamers Atavism User Verification: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.07 ▼0.141.54 ▼0.3537.00 ▼7.75
Dashboard /wp-admin2,195 ▲155.60 ▼0.0591.37 ▼7.6940.56 ▼2.33
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0640.73 ▲1.6035.47 ▲1.79
Add New Post /wp-admin/post-new.php1,527 ▲123.03 ▼0.43596.35 ▼86.1347.10 ▼9.78
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0396.56 ▼11.1640.39 ▼5.69

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-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/hngamers-atavism-user-verification/templates/hngamers-atavism-verify-user.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'hngamers_atavism_core' not found in wp-content/plugins/hngamers-atavism-user-verification/atavism-verify.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: atavism online, user verification

hngamers-atavism-user-verification/atavism-verify.php 77% from 13 tests

The main file in "HNGamers Atavism User Verification" v. 0.0.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hngamers-atavism-user-verification.php" instead of "atavism-verify.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)

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
There were no executable files found in this plugin302 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24743302

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.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
No PNG files were detected