89% brozzme-hover-integration

Code Review | Brozzme Hover integration

WordPress plugin Brozzme Hover integration scored 89% from 54 tests.

About plugin

  • Plugin page: brozzme-hover-int...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8
  • WordPress version: 5.8.1
  • First release: Jul 27, 2015
  • Latest release: Mar 31, 2017
  • Number of updates: 22
  • Update frequency: every 31.1 days
  • Top authors: Benoti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,282 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼146.01ms] Passed 4 tests

This is a short check of server-side resources used by Brozzme Hover integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.0939.22 ▲5.67
Dashboard /wp-admin3.16 ▲0.1043.74 ▼4.48
Posts /wp-admin/edit.php3.24 ▲0.1340.63 ▼3.16
Add New Post /wp-admin/post-new.php5.53 ▲0.1089.11 ▼569.40
Media Library /wp-admin/upload.php3.10 ▲0.0933.57 ▼7.00
Brozzme Hover Settings /wp-admin/options-general.php?page=brozzme-hover3.0727.59

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options
brozzme_hover_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Brozzme Hover integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲17016.33 ▲0.379.25 ▲1.1445.60 ▼2.98
Dashboard /wp-admin3,021 ▲906.60 ▲0.48134.69 ▼2.51113.03 ▲2.54
Posts /wp-admin/edit.php2,790 ▲513.03 ▲0.3471.16 ▲7.84102.20 ▲15.58
Add New Post /wp-admin/post-new.php1,913 ▲23718.07 ▼0.79362.34 ▼8.66127.35 ▲15.93
Media Library /wp-admin/upload.php1,858 ▲485.49 ▲0.46130.65 ▼36.76116.52 ▼9.09
Brozzme Hover Settings /wp-admin/options-general.php?page=brozzme-hover1,5372.6176.7584.36

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
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • brozzme_hover_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #3 (The screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).)
You can take inspiration from this readme.txt

brozzme-hover-integration/brozzme-hover.php 85% from 13 tests

The primary PHP file in "Brozzme Hover integration" version 1.2.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("brozzme-hover-integration.php" instead of "brozzme-hover.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected5,297 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS53761514,482
PHP5133148433
JSON200260
JavaScript32715122

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected