88% open-hybrid

Code Review | Open hybrid

WordPress plugin Open hybrid scored 88% from 54 tests.

About plugin

  • Plugin page: open-hybrid
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 5.8.1
  • First release: Dec 20, 2016
  • Latest release: Jan 5, 2017
  • Number of updates: 8
  • Update frequency: every 1.8 days
  • Top authors: bvnguyen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 504 total downloads

Benchmarks

Plugin footprint Passed 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 gracefully, with no errors

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

A check of server-side resources used by Open hybrid
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.64 ▼0.2013.67 ▼9.17
Dashboard /wp-admin3.07 ▲0.0030.80 ▼6.90
Posts /wp-admin/edit.php3.12 ▲0.0131.45 ▼0.88
Add New Post /wp-admin/post-new.php5.43 ▼0.0170.33 ▼726.20
Media Library /wp-admin/upload.php3.01 ▲0.0123.15 ▲0.62

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Open hybrid
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,687 ▲8615.62 ▼0.388.89 ▲3.7078.27 ▲4.92
Dashboard /wp-admin2,946 ▲546.09 ▼0.09120.33 ▼10.24169.92 ▼2.09
Posts /wp-admin/edit.php2,726 ▼143.24 ▲0.0165.77 ▲1.28142.64 ▲0.97
Add New Post /wp-admin/post-new.php3,820 ▲7718.76 ▼1.04465.05 ▼17.29168.43 ▼1.29
Media Library /wp-admin/upload.php1,772 ▲205.51 ▲0.04153.23 ▲4.76200.02 ▲10.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/open-hybrid/open-hybrid-wordpress.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/open-hybrid/backend.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/open-hybrid/frontend.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/open-hybrid/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

open-hybrid/open-hybrid-wordpress.php 85% from 13 tests

The entry point to "Open hybrid" version 0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("open-hybrid.php" instead of "open-hybrid-wordpress.php")

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 plugin186 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP54516186

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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