10% uniplace-client

Code Review | Uniplace client

WordPress plugin Uniplace client scored10%from 54 tests.

About plugin

  • Plugin page: uniplace-client
  • Plugin version: 1.0.23
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: May 15, 2018
  • Latest release: May 15, 2018
  • Number of updates: 3
  • Update frequency: every 7.0 days
  • Top authors: idevtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /539 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/uniplace-client/class.uniplace-widget.php+30
    Declaration of Uniplace_Widget::widget() should be compatible with WP_Widget::widget($args, $instance)

Server metrics [RAM: ▼1.84MB] [CPU: ▼56.28ms] Passed 4 tests

This is a short check of server-side resources used by Uniplace client
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.325.09 ▼33.58
Dashboard /wp-admin2.17 ▼1.146.96 ▼47.95
Posts /wp-admin/edit.php2.17 ▼1.197.89 ▼47.00
Add New Post /wp-admin/post-new.php2.17 ▼3.726.47 ▼96.57
Media Library /wp-admin/upload.php2.17 ▼1.066.24 ▼31.22
Uniplace /wp-admin/options-general.php?page=uniplace-installer-config2.176.17

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/uniplace-client/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
uniplace_charset
widget_uniplace-widget
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Uniplace client
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.65 ▼0.741.90 ▲0.1444.47 ▲4.09
Dashboard /wp-admin2,225 ▲315.83 ▼0.04111.56 ▼0.1153.12 ▲5.35
Posts /wp-admin/edit.php2,107 ▲42.06 ▲0.0441.79 ▲0.7734.41 ▼2.52
Add New Post /wp-admin/post-new.php1,562 ▲2118.42 ▲0.25617.73 ▼45.5266.25 ▲14.55
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0696.44 ▼17.2143.18 ▼4.93
Uniplace /wp-admin/options-general.php?page=uniplace-installer-config8342.0226.3027.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/uniplace-client/class.uniplace-widget.php+30
    Declaration of Uniplace_Widget::widget() should be compatible with WP_Widget::widget($args, $instance)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_uniplace-widget
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=uniplace-installer-config
    • > Warning in wp-content/plugins/uniplace-client/class.uniplace-widget.php+30
    Declaration of Uniplace_Widget::widget() should be compatible with WP_Widget::widget($args, $instance)
    • > GET request to /wp-admin/options-general.php?page=uniplace-installer-config
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Uniplace_Widget is deprecated since version 4.3.0! Use __construct() instead.

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/uniplace-client/codes/php/uniplace_id/Update.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(uniplacer_config.php): failed to open stream: No such file or directory in wp-content/plugins/uniplace-client/codes/php/uniplace_id/uniplacer.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/uniplace-client/class.uniplace-widget.php:14
    • > PHP Fatal error
      require_once(): Failed opening required 'uniplacer_config.php' (include_path='.:/usr/share/php') in wp-content/plugins/uniplace-client/codes/php/uniplace_id/uniplacer.php on line 12
    • > PHP Warning
      require_once(uniplacer_config.php): failed to open stream: No such file or directory in wp-content/plugins/uniplace-client/codes/php/uniplace_id/sync.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'uniplacer_config.php' (include_path='.:/usr/share/php') in wp-content/plugins/uniplace-client/codes/php/uniplace_id/sync.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There were no tags found
  • Donate link: Invalid URI found ("")
The official readme.txt might help

uniplace-client/uniplace-installer.php 92% from 13 tests

The main file in "Uniplace client" v. 1.0.23 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("uniplace-client.php" instead of "uniplace-installer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,227 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP73133961,123
PO File13467104

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity58.67
▷ Minimum class complexity3.00
▷ Maximum class complexity139.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods44
▷ Static methods1840.91%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants1161.11%
▷ Class constants738.89%
▷ Public constants7100.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 files were detected