83% hivo-library

Code Review | HIVO Connector

WordPress plugin HIVO Connector scored83%from 54 tests.

About plugin

  • Plugin page: hivo-library
  • Plugin version: 0.0.1
  • PHP compatiblity: 4.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.2.6
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: May 27, 2020
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: hivo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /392 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.45ms] Passed 4 tests

Analyzing server-side resources used by HIVO Connector
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.49 ▼5.63
Dashboard /wp-admin3.37 ▲0.0252.02 ▼16.28
Posts /wp-admin/edit.php3.48 ▲0.1352.52 ▼0.07
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.87 ▼2.96
Media Library /wp-admin/upload.php3.29 ▲0.0635.22 ▼0.94

Server storage [IO: ▲0.48MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for HIVO Connector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.25 ▼1.051.58 ▼0.3842.10 ▼0.56
Dashboard /wp-admin2,237 ▲454.88 ▼0.12111.04 ▼2.5341.30 ▼1.39
Posts /wp-admin/edit.php2,123 ▲372.04 ▲0.0746.11 ▲8.9238.60 ▲1.01
Add New Post /wp-admin/post-new.php1,527 ▼617.50 ▼5.60629.70 ▼54.5655.07 ▼7.97
Media Library /wp-admin/upload.php1,423 ▲354.24 ▼0.01102.69 ▼2.4847.16 ▲1.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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 everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/hivo-library/includes/plugin-page.php
    • > /wp-content/plugins/hivo-library/includes/templates/plugin.php
    • > /wp-content/plugins/hivo-library/hivo-connector.php
    • > /wp-content/plugins/hivo-library/includes/upload-api.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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:
  • Screenshots: Add images for these screenshots: #1 (Login page), #2 (Library page)
The official readme.txt is a good inspiration

hivo-library/hivo-connector.php 77% from 13 tests

The primary PHP file in "HIVO Connector" version 0.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/lang/")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("hivo-library.php" instead of "hivo-connector.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin293 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP554101185
JavaScript120107
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity7.33
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin