78% hngamers-atavism-core

Code Review | HNGamers Atavism Core

WordPress plugin HNGamers Atavism Core scored78%from 54 tests.

About plugin

  • Plugin page: hngamers-atavism-...
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2022
  • Latest release: Nov 16, 2022
  • Number of updates: 6
  • Update frequency: every 6.7 days
  • Top authors: thevisad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /344 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.81ms] Passed 4 tests

Server-side resources used by HNGamers Atavism Core
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.30 ▼2.86
Dashboard /wp-admin3.44 ▲0.1444.83 ▼2.42
Posts /wp-admin/edit.php3.49 ▲0.1346.03 ▲0.48
Add New Post /wp-admin/post-new.php6.02 ▲0.1380.02 ▼21.90
Media Library /wp-admin/upload.php3.36 ▲0.1334.03 ▼0.06
Database /wp-admin/admin.php?page=hngamers-core-admin-database3.3331.56
HNGamers /wp-admin/admin.php?page=hngamers-core-admin3.3230.35

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
hngamers_core_options
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for HNGamers Atavism Core
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.77 ▲0.091.74 ▲0.0040.65 ▲3.68
Dashboard /wp-admin2,236 ▲444.86 ▼0.0498.63 ▼8.5840.74 ▼3.03
Posts /wp-admin/edit.php2,116 ▲272.00 ▲0.0239.35 ▲0.9334.76 ▼0.71
Add New Post /wp-admin/post-new.php1,565 ▲4518.22 ▼5.35608.77 ▼84.5751.08 ▼8.45
Media Library /wp-admin/upload.php1,415 ▲244.16 ▼0.0594.97 ▼4.1442.91 ▼2.79
Database /wp-admin/admin.php?page=hngamers-core-admin-database1,1622.0621.7529.06
HNGamers /wp-admin/admin.php?page=hngamers-core-admin8062.0524.6826.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=hngamers-core-admin-database
    • > Warning in wp-content/plugins/hngamers-atavism-core/hngamerscore.php+140
    mysqli::__construct(): (HY000/1698): Access denied for user 'root'@'localhost'
    • > GET request to /wp-admin/admin.php?page=hngamers-core-admin-database
    • > Warning in wp-content/plugins/hngamers-atavism-core/hngamerscore.php+150
    mysqli::close(): Couldn't fetch mysqli

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hngamers-atavism-core/hngamerscore.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 96% 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-core/hngamerscore.php 92% from 13 tests

The primary PHP file in "HNGamers Atavism Core" version 0.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("hngamers-atavism-core.php" instead of "hngamerscore.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin306 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14919306

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
There were not PNG files found in your plugin