62% unitizr

Code Review | Unitizr

WordPress plugin Unitizr scored62%from 54 tests.

About plugin

  • Plugin page: unitizr
  • Plugin version: 1.0.44
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Sep 17, 2019
  • Latest release: Aug 10, 2021
  • Number of updates: 23
  • Update frequency: every 30.1 days
  • Top authors: tradesouthwest@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.79MB] [CPU: ▼31.82ms] Passed 4 tests

This is a short check of server-side resources used by Unitizr
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.97 ▼0.42
Dashboard /wp-admin3.15 ▼0.1526.11 ▼25.77
Posts /wp-admin/edit.php3.15 ▼0.2125.83 ▼19.61
Add New Post /wp-admin/post-new.php3.15 ▼2.7428.78 ▼74.09
Media Library /wp-admin/upload.php3.15 ▼0.0830.30 ▼7.81
Unitizr /wp-admin/options-general.php?page=unitizr3.1527.27

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Unitizr
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14913.67 ▼0.579.92 ▲7.9138.15 ▼5.91
Dashboard /wp-admin2,214 ▲295.85 ▲0.0198.91 ▲0.0338.93 ▼0.50
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0640.13 ▲2.3235.91 ▲0.77
Add New Post /wp-admin/post-new.php1,521 ▲717.74 ▲0.34636.35 ▼51.0156.87 ▼0.20
Media Library /wp-admin/upload.php1,399 ▲144.15 ▼0.0693.04 ▼12.0641.16 ▼5.63
Unitizr /wp-admin/options-general.php?page=unitizr1,0252.0623.5753.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/unitizr/inc/unitizr-adminpage.php+72
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=unitizr
    • > Notice in wp-content/plugins/unitizr/inc/unitizr-adminpage.php+226
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/unitizr/inc/index.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=unitizr
    • > Javascript (severe) in unknown
    /wp-content/plugins/unitizr/lib/unitizr-plugin.js?ver=1 9:2 Uncaught TypeError: jQuery(...).load(...) is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: Screenshot #5 (Additional support documents in admin) image not found
You can take inspiration from this readme.txt

unitizr/unitizr.php 92% from 13 tests

The principal PHP file in "Unitizr" v. 1.0.44 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.2" instead of "4.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,281 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP867276754
CSS33860519
JavaScript1118

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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