84% hey-check-it

Code Review | Hey Check It

WordPress plugin Hey Check It scored84%from 54 tests.

About plugin

  • Plugin page: hey-check-it
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.9.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2020
  • Latest release: Jun 13, 2022
  • Number of updates: 9
  • Update frequency: every 68.8 days
  • Top authors: dougblackjr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,659 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.52ms] Passed 4 tests

Analyzing server-side resources used by Hey Check It
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.40 ▲4.60
Dashboard /wp-admin3.37 ▲0.0248.69 ▼14.51
Posts /wp-admin/edit.php3.48 ▲0.1352.54 ▲8.49
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.27 ▼20.17
Media Library /wp-admin/upload.php3.29 ▲0.0639.34 ▲4.00
Hey Check It /wp-admin/options-general.php?page=hey-check-it3.2633.34

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Hey Check It
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.22 ▼0.061.72 ▼0.1141.17 ▲1.02
Dashboard /wp-admin2,202 ▲285.59 ▲0.0387.32 ▼19.8639.28 ▼4.31
Posts /wp-admin/edit.php2,101 ▼21.98 ▲0.0239.30 ▲3.4935.23 ▲2.83
Add New Post /wp-admin/post-new.php1,537 ▲618.36 ▼4.75602.48 ▼78.3977.11 ▲16.37
Media Library /wp-admin/upload.php1,401 ▼24.26 ▲0.09103.88 ▲0.5147.07 ▲0.91
Hey Check It /wp-admin/options-general.php?page=hey-check-it8352.1724.8227.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hey-check-it
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: hey, check, it

hey-check-it/hey-check-it.php Passed 13 tests

Analyzing the main PHP file in "Hey Check It" version 2.0.2
60 characters long description:
Adds your Hey Check It Tracking Code to your WordPress site.

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
There were no executable files found in this plugin304 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44331270
CSS18132
JavaScript1072

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
PNG images were not found in this plugin