90% vaaky-highlighter

Code Review | Vaaky Highlighter

WordPress plugin Vaaky Highlighter scored90%from 54 tests.

About plugin

  • Plugin page: vaaky-highlighter
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2021
  • Latest release: Sep 9, 2023
  • Number of updates: 7
  • Update frequency: every 101.1 days
  • Top authors: webhat (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,056 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
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.54ms] Passed 4 tests

This is a short check of server-side resources used by Vaaky Highlighter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1644.54 ▼2.21
Dashboard /wp-admin3.47 ▲0.1653.63 ▲3.05
Posts /wp-admin/edit.php3.59 ▲0.2355.34 ▲1.76
Add New Post /wp-admin/post-new.php6.05 ▲0.1699.33 ▼6.81
Media Library /wp-admin/upload.php3.40 ▲0.1641.25 ▲1.10
Vaaky Highlighter /wp-admin/options-general.php?page=vaaky-highlighter3.3637.72

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
vaaky-highlighter-settings-option
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Vaaky Highlighter: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲9520.39 ▲6.251.75 ▼0.4540.73 ▼3.78
Dashboard /wp-admin2,284 ▲10410.88 ▲5.22273.38 ▲180.7646.80 ▲6.58
Posts /wp-admin/edit.php2,224 ▲12410.47 ▲8.5286.19 ▲46.3034.19 ▼6.17
Add New Post /wp-admin/post-new.php6,195 ▲4,66926.32 ▲3.26780.10 ▲56.8339.62 ▼23.93
Media Library /wp-admin/upload.php1,509 ▲10911.06 ▲6.91155.23 ▲38.0944.88 ▼14.56
Vaaky Highlighter /wp-admin/options-general.php?page=vaaky-highlighter1,30510.1078.1326.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: highlightjs, highlighter, syntax highlighter, sourcecode, snippets...

vaaky-highlighter/vaaky-highlighter.php 92% from 13 tests

The primary PHP file in "Vaaky Highlighter" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("/Languages")

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
Everything looks great! No dangerous files found in this plugin2,208 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13661,361
PHP15198619803
CSS2675544

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.44
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods42
▷ Static methods614.29%
▷ Public methods3890.48%
▷ Protected methods00.00%
▷ Private methods49.52%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants10
▷ Global constants550.00%
▷ Class constants550.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
Frontend/css/brown-papersq.png17.77KB9.92KB▼ 44.16%