89% change-link-color-elementor

Code Review | Change Link Color Elementor

WordPress plugin Change Link Color Elementor scored89%from 54 tests.

About plugin

  • Plugin page: change-link-color...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 17, 2023
  • Latest release: Jan 19, 2023
  • Number of updates: 11
  • Update frequency: every 0.3 days
  • Top authors: miizu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Change Link Color Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.87 ▼4.91
Dashboard /wp-admin3.31 ▲0.0153.22 ▲1.63
Posts /wp-admin/edit.php3.36 ▲0.0151.09 ▲0.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.43 ▼14.66
Media Library /wp-admin/upload.php3.23 ▲0.0137.38 ▲2.67

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Change Link Color Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.071.97 ▲0.1544.06 ▲3.33
Dashboard /wp-admin2,206 ▲185.83 ▲0.97101.36 ▼14.0738.20 ▼4.74
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0135.93 ▼4.1733.19 ▼2.88
Add New Post /wp-admin/post-new.php1,514 ▼1917.59 ▼5.61705.80 ▲39.2854.38 ▲0.13
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0499.04 ▼14.6845.00 ▼3.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: A description for screenshot #2 is missing in change-link-color-elementor/assets to your readme.txt
Please take inspiration from this readme.txt

change-link-color-elementor/change-link-color-elementor.php 92% from 13 tests

Analyzing the main PHP file in "Change Link Color Elementor" version 1.0.0
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 detected87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2257787

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods436.36%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
3 PNG files occupy 0.10MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/screenshot-1.png61.02KB0.00KB▼ 100.00%
assets/icon-128x128.png3.93KB2.48KB▼ 36.79%
(invalid) assets/screenshot-2.png42.22KB0.00KB▼ 100.00%