84% easy-highlight-text

Code Review | Easy Highlight Text

WordPress plugin Easy Highlight Text scored 84% from 54 tests.

About plugin

  • Plugin page: easy-highlight-text
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2015
  • Latest release: Jan 22, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: jonathanmelgoza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,032 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.43ms] Passed 4 tests

Analyzing server-side resources used by Easy Highlight Text
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.45 ▼5.74
Dashboard /wp-admin3.31 ▲0.0146.20 ▼5.35
Posts /wp-admin/edit.php3.36 ▲0.0049.81 ▲0.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.14 ▼14.99
Media Library /wp-admin/upload.php3.23 ▲0.0036.32 ▲1.97

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Easy Highlight Text
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.17 ▼1.202.58 ▲0.5758.47 ▲14.73
Dashboard /wp-admin2,206 ▲184.86 ▼0.00111.00 ▼6.2638.29 ▼8.88
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0235.28 ▼2.1530.93 ▼3.72
Add New Post /wp-admin/post-new.php1,542 ▲2818.17 ▲0.48626.23 ▼67.1454.59 ▲1.36
Media Library /wp-admin/upload.php1,385 ▼04.22 ▼0.0398.44 ▼7.0643.81 ▼2.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 add_action() in wp-content/plugins/easy-highlight-text/easy-highlight-text.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: Please add at least on tag
The official readme.txt is a good inspiration

easy-highlight-text/easy-highlight-text.php 92% from 13 tests

This is the main PHP file of "Easy Highlight Text" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 203 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected72 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS15066
PHP12106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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