84% youneeq-panel

Code Review | Youneeq Recommendations

WordPress plugin Youneeq Recommendations scored84%from 54 tests.

About plugin

  • Plugin page: youneeq-panel
  • Plugin version: 3.0.7
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Aug 26, 2015
  • Latest release: Jun 28, 2019
  • Number of updates: 163
  • Update frequency: every 8.6 days
  • Top authors: youneeq (72.39%)yqalex (28.22%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼15.96ms] Passed 4 tests

This is a short check of server-side resources used by Youneeq Recommendations
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲0.5652.59 ▲14.32
Dashboard /wp-admin3.85 ▲0.5046.35 ▼14.72
Posts /wp-admin/edit.php3.90 ▲0.5449.34 ▲2.04
Add New Post /wp-admin/post-new.php3.64 ▼2.2538.72 ▼55.97
Media Library /wp-admin/upload.php3.77 ▲0.5438.79 ▲4.82
Support /wp-admin/admin.php?page=youneeq-support3.6933.16
Dashboard /wp-admin/admin.php?page=youneeq-dashboard3.6830.53
Youneeq /wp-admin/admin.php?page=youneeq-settings3.8544.11

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
widget_recent-posts
category_children
widget_theysaidso_widget
widget_youneeq_explorer
theysaidso_admin_options
widget_recent-comments
widget_youneeq_recommender
widget_youneeq_search
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Youneeq Recommendations
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲20413.77 ▼0.859.76 ▲8.1038.56 ▼1.36
Dashboard /wp-admin2,261 ▲835.57 ▼0.0584.76 ▼14.3937.85 ▼3.49
Posts /wp-admin/edit.php2,170 ▲671.96 ▼0.0440.88 ▲4.9534.41 ▼0.23
Add New Post /wp-admin/post-new.php6,342 ▲4,81618.73 ▼4.43826.65 ▲161.8455.21 ▼10.12
Media Library /wp-admin/upload.php1,466 ▲634.20 ▲0.0597.62 ▼1.8443.35 ▼1.90
Support /wp-admin/admin.php?page=youneeq-support1,0582.0424.0430.73
Dashboard /wp-admin/admin.php?page=youneeq-dashboard9362.2023.6425.81
Youneeq /wp-admin/admin.php?page=youneeq-settings1,7213.2238.3765.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 10 options
    • widget_youneeq_search
    • can_compress_scripts
    • theysaidso_admin_options
    • category_children
    • widget_youneeq_explorer
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_youneeq_recommender
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/youneeq-panel/youneeq-panel.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
3 plugin tags: youneeq, widget, recommendations

youneeq-panel/youneeq-panel.php 92% from 13 tests

The principal PHP file in "Youneeq Recommendations" v. 3.0.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 340 characters long)

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
No dangerous file extensions were detected3,880 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP204541,6612,602
TypeScript42004801,157
Sass218094
JSON10016
JavaScript6066
CSS3023
SVG2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity18.88
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes318.75%
▷ Concrete classes1381.25%
▷ Final classes00.00%
Methods142
▷ Static methods7351.41%
▷ Public methods8962.68%
▷ Protected methods3423.94%
▷ Private methods1913.38%
Functions13
▷ Named functions00.00%
▷ Anonymous functions13100.00%
Constants21
▷ Global constants14.76%
▷ Class constants2095.24%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_444444_256x240.png0.26KB0.27KB0.00%
img/yq-logo.png7.54KB4.95KB▼ 34.36%
css/images/ui-icons_555555_256x240.png0.26KB0.27KB0.00%