83% hiweb-plugins-server

Code Review | hiWeb Plugins Server

WordPress plugin hiWeb Plugins Server scored 83% from 54 tests.

About plugin

  • Plugin page: hiweb-plugins-server
  • Plugin version: 2.2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Nov 27, 2016
  • Number of updates: 27
  • Update frequency: every 16.6 days
  • Top authors: Den Media (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,078 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.24ms] Passed 4 tests

A check of server-side resources used by hiWeb Plugins Server
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.67 ▲1.75
Dashboard /wp-admin3.51 ▲0.2148.03 ▼1.70
Posts /wp-admin/edit.php3.57 ▲0.2144.66 ▼0.19
Add New Post /wp-admin/post-new.php6.03 ▲0.1593.22 ▼4.82
Media Library /wp-admin/upload.php3.37 ▲0.1537.17 ▲2.40
hiWeb Remote Plugins /wp-admin/plugins.php?page=hiweb-plugins-server-remote3.3531.38
hiWeb Plugins Server /wp-admin/options-general.php?page=hiweb-plugins-server-settings3.3532.06

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

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/hiweb-plugins-server/" and "wp-content/uploads/"
    • (new file) wp-content/hiweb-plugins-server-root/.empty
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
hw_plugins_server_status
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by hiWeb Plugins Server
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7314.82 ▲0.071.79 ▼0.0443.36 ▼3.59
Dashboard /wp-admin2,217 ▲325.87 ▲0.99105.60 ▼16.4643.59 ▼3.49
Posts /wp-admin/edit.php2,097 ▲81.99 ▼0.0735.96 ▼0.4133.62 ▲0.06
Add New Post /wp-admin/post-new.php1,542 ▲2023.80 ▲0.44606.05 ▲22.1457.24 ▲3.07
Media Library /wp-admin/upload.php1,396 ▲54.20 ▼0.0293.43 ▼8.0140.36 ▼3.21
hiWeb Remote Plugins /wp-admin/plugins.php?page=hiweb-plugins-server-remote7622.0424.4824.91
hiWeb Plugins Server /wp-admin/options-general.php?page=hiweb-plugins-server-settings8122.0423.8629.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • hw_plugins_server_status
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hiweb-plugins-server/inc/define.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _hw_plugins_server_script() in wp-content/plugins/hiweb-plugins-server/templates/options-page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _hw_plugins_server_script() in wp-content/plugins/hiweb-plugins-server/templates/remote-plugins.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _hw_plugins_server_script() in wp-content/plugins/hiweb-plugins-server/templates/server-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hiweb-plugins-server/inc/options.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-plugins-server/inc/script-styles.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hiweb-plugins-server/inc/define.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hiweb-plugins-server/inc/hooks.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Server plugins list for host them) image missing
  • Tags: There are too many tags (31 tag instead of maximum 10)
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

hiweb-plugins-server/hiweb-plugins-server.php Passed 13 tests

The primary PHP file in "hiWeb Plugins Server" version 2.2.0.0 is used by WordPress to initiate all plugin functionality
108 characters long description:
Create your own plug-ins server. Создай свой собственный сервер плагинов.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,201 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP132223261,109
JavaScript36992

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity17.12
▷ Minimum class complexity5.00
▷ Maximum class complexity33.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods73
▷ Static methods00.00%
▷ Public methods6994.52%
▷ Protected methods00.00%
▷ Private methods45.48%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.35MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png96.35KB51.17KB▼ 46.89%
screenshot-1.png100.62KB54.83KB▼ 45.51%
screenshot-3.png77.27KB44.36KB▼ 42.60%
screenshot-4.png79.05KB43.76KB▼ 44.65%