94% snoobi-id-checker

Code Review | Snoobi ID checker

WordPress plugin Snoobi ID checker scored 94% from 54 tests.

About plugin

  • Plugin page: snoobi-id-checker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 5.8.1
  • First release: Oct 5, 2021
  • Latest release: Oct 5, 2021
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: frn123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 44 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Snoobi ID checker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1227.59 ▲5.47
Dashboard /wp-admin3.06 ▲0.0046.52 ▲4.37
Posts /wp-admin/edit.php3.11 ▲0.0044.40 ▼1.45
Add New Post /wp-admin/post-new.php5.42 ▼0.0289.08 ▼565.67
Media Library /wp-admin/upload.php3.00 ▲0.0035.61 ▲4.16

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Snoobi ID checker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.87 ▲0.2610.42 ▼0.0946.81 ▼4.52
Dashboard /wp-admin2,967 ▲335.87 ▼0.10132.72 ▼20.91110.34 ▼6.38
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.1164.15 ▲2.0285.57 ▼9.84
Add New Post /wp-admin/post-new.php1,676 ▲618.83 ▼0.35370.73 ▼12.68102.93 ▼1.94
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.00147.56 ▲5.30115.03 ▼10.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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
The smoke test was a success, however most plugin functionality was not tested

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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/snoobi-id-checker/snoobiIDcheckerPlugin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: idchecker, tracking, snoobi, analytics

snoobi-id-checker/snoobiIDcheckerPlugin.php 92% from 13 tests

The main PHP file in "Snoobi ID checker" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("snoobi-id-checker.php" instead of "snoobiIDcheckerPlugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin168 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1100141
PHP15927

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There are no PNG files in this plugin