90% hover-highlights-editor-highlighting

Code Review | Hover Highlights - Editor block highlighting

WordPress plugin Hover Highlights - Editor block highlighting scored90%from 54 tests.

About plugin

  • Plugin page: hover-highlights-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 12, 2023
  • Latest release: Aug 18, 2023
  • Number of updates: 7
  • Update frequency: every 15.0 days
  • Top authors: Cybr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /150 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.80ms] Passed 4 tests

A check of server-side resources used by Hover Highlights - Editor block highlighting
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.23 ▲0.03
Dashboard /wp-admin3.31 ▼0.0445.37 ▼21.36
Posts /wp-admin/edit.php3.36 ▲0.0074.02 ▲22.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.91 ▼4.66
Media Library /wp-admin/upload.php3.23 ▲0.0032.73 ▼5.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Hover Highlights - Editor block highlighting: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.27 ▼1.031.73 ▼0.2146.46 ▲2.21
Dashboard /wp-admin2,221 ▲185.91 ▲0.0996.58 ▼22.8837.57 ▼5.91
Posts /wp-admin/edit.php2,103 ▲32.15 ▲0.1640.39 ▲1.0736.55 ▲2.40
Add New Post /wp-admin/post-new.php1,555 ▲2323.37 ▲0.27664.90 ▼20.3857.25 ▲3.17
Media Library /wp-admin/upload.php1,394 ▼34.23 ▼0.1097.95 ▼2.9045.16 ▲0.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: a11y, block editor, blocks, highlighter, gutenberg...

hover-highlights-editor-highlighting/hover-highlights.php 92% from 13 tests

The main file in "Hover Highlights - Editor block highlighting" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hover-highlights-editor-highlighting.php" instead of "hover-highlights.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP163515

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
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
Namespaces1
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin