84% highlight-text

Code Review | Highlight Text

WordPress plugin Highlight Text scored84%from 54 tests.

About plugin

  • Plugin page: highlight-text
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.6
  • WordPress version: 6.3.1
  • First release: May 19, 2020
  • Latest release: Feb 12, 2022
  • Number of updates: 5
  • Update frequency: every 127.0 days
  • Top authors: Mamaduka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Highlight Text
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.31 ▼6.12
Dashboard /wp-admin3.31 ▲0.0143.88 ▼3.83
Posts /wp-admin/edit.php3.36 ▲0.0142.36 ▼3.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.31 ▼12.53
Media Library /wp-admin/upload.php3.23 ▲0.0133.52 ▲0.59

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Highlight Text
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.181.73 ▼0.0140.45 ▼3.65
Dashboard /wp-admin2,200 ▲155.83 ▼0.02101.28 ▼15.5440.89 ▼5.63
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0433.96 ▼4.6932.82 ▼2.35
Add New Post /wp-admin/post-new.php1,527 ▲818.43 ▼4.71619.82 ▼42.1051.87 ▼5.12
Media Library /wp-admin/upload.php1,385 ▼04.21 ▲0.0596.61 ▼0.3343.20 ▲1.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Mamaduka\\Highlight\\add_action() in wp-content/plugins/highlight-text/highlight-text.php:46

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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: You can look at the official readme.txt

highlight-text/highlight-text.php Passed 13 tests

The main PHP file in "Highlight Text" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
Text highligher for the Block Editor

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 plugin26 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP241924
CSS1001
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
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
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin