78% just-highlight

Code Review | Just Highlight

WordPress plugin Just Highlight scored78%from 54 tests.

About plugin

  • Plugin page: just-highlight
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Nov 7, 2020
  • Latest release: Jan 24, 2021
  • Number of updates: 11
  • Update frequency: every 7.2 days
  • Top authors: sigalitam (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /2,501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼7.73MB] [CPU: ▼1,591,904.61ms] Passed 4 tests

Server-side resources used by Just Highlight
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▼31.1146.36 ▼6,367,593.93
Dashboard /wp-admin3.40 ▲0.0552.49 ▼4.29
Posts /wp-admin/edit.php3.51 ▲0.1148.94 ▼8.95
Add New Post /wp-admin/post-new.php6.01 ▲0.0890.18 ▼11.26
Media Library /wp-admin/upload.php3.32 ▲0.0540.00 ▼0.76
Just Highlight /wp-admin/options-general.php?page=just-highlight3.2936.06

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Just Highlight
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲15813.72 ▼0.705.67 ▲3.9643.73 ▲0.13
Dashboard /wp-admin2,224 ▲445.81 ▲0.2192.15 ▲3.6740.65 ▲3.35
Posts /wp-admin/edit.php2,134 ▲312.30 ▲0.3339.54 ▲2.1832.93 ▼2.00
Add New Post /wp-admin/post-new.php1,555 ▲2923.72 ▲0.19684.79 ▼41.5136.59 ▼38.17
Media Library /wp-admin/upload.php1,429 ▲294.56 ▲0.35114.07 ▲12.6648.22 ▲1.36
Just Highlight /wp-admin/options-general.php?page=just-highlight1,0452.4939.9526.39

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=just-highlight
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=just-highlight
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 50% 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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/just-highlight/just-highlight.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: selection, select, highlighter, highlight, text highlight...

just-highlight/just-highlight.php 92% from 13 tests

Analyzing the main PHP file in "Just Highlight" version 1.0.3
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected406 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP12121199
JavaScript5130106
SVG10082
CSS32019

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 5.05MB with 2.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png522.05KB236.63KB▼ 54.67%
assets/screenshot-6.png992.03KB497.93KB▼ 49.81%
assets/icon.png66.69KB28.33KB▼ 57.51%
images/highlight.png53.52KB15.98KB▼ 70.15%
assets/screenshot-2.png619.88KB228.25KB▼ 63.18%