83% unicheck

Code Review | Unicheck

WordPress plugin Unicheck scored83%from 54 tests.

About plugin

  • Plugin page: unicheck
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Nov 7, 2016
  • Number of updates: 3
  • Update frequency: every 3.4 days
  • Top authors: alex3dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.01ms] Passed 4 tests

This is a short check of server-side resources used by Unicheck
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0833.72 ▼4.37
Dashboard /wp-admin3.40 ▲0.0546.17 ▼14.94
Posts /wp-admin/edit.php3.45 ▲0.0946.81 ▲2.47
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.44 ▼10.18
Media Library /wp-admin/upload.php3.32 ▲0.0836.60 ▲1.46
Настройки плагина Unicheck /wp-admin/options-general.php?page=sendPostPublishedInfo3.2831.96

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 18 new options
New WordPress options
can_compress_scripts
widget_recent-posts
unchck_bill_text
unchck_spam_text
unchck_znaktype_text
unchck_except_author_text
unchck_paytype_text
theysaidso_admin_options
widget_theysaidso_widget
unchck_normaznak_text
...

Browser metrics Passed 4 tests

An overview of browser requirements for Unicheck
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.22 ▼1.162.01 ▲0.2440.45 ▼3.37
Dashboard /wp-admin2,207 ▲195.76 ▼0.14102.81 ▼14.4540.54 ▼5.97
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0335.51 ▼0.2834.87 ▼1.59
Add New Post /wp-admin/post-new.php1,536 ▲123.20 ▲0.17700.70 ▲34.2959.09 ▼0.26
Media Library /wp-admin/upload.php1,392 ▲44.19 ▲0.0296.17 ▼0.7442.08 ▲0.25
Настройки плагина Unicheck /wp-admin/options-general.php?page=sendPostPublishedInfo1,0082.1523.9827.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 18 options in the database
    • unchck_znaktype_text
    • unchck_normaznak_text
    • unchck_bill_text
    • unchck_fixstavka_text
    • unchck_stavka_text
    • unchck_paytype_text
    • unchck_sovpad_text
    • unchck_spam_text
    • db_upgraded
    • unchck_water_text
    • ...

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)
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/unicheck/unicheck.php:50

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
  • Contributors: There were no tags found
  • Tags: There were no tags found
Please take inspiration from this readme.txt

unicheck/unicheck.php 92% from 13 tests

The main file in "Unicheck" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 202 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected435 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116294435

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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
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%
Functions8
▷ Named functions8100.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
No PNG images were found in this plugin