83% ss-link-hover-effect

Code Review | SS Link Hover Effect

WordPress plugin SS Link Hover Effect scored 83% from 54 tests.

About plugin

  • Plugin page: ss-link-hover-effect
  • Plugin version: 3.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.0
  • WordPress version: 6.3.1
  • First release: May 31, 2014
  • Latest release: Aug 29, 2020
  • Number of updates: 17
  • Update frequency: every 134.3 days
  • Top authors: wsaiful (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,895 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by SS Link Hover Effect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.94 ▼4.19
Dashboard /wp-admin3.31 ▲0.0043.85 ▼3.06
Posts /wp-admin/edit.php3.36 ▲0.0052.07 ▲3.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.57 ▼6.10
Media Library /wp-admin/upload.php3.23 ▲0.0035.18 ▼1.48

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SS Link Hover Effect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.48 ▲0.101.60 ▼0.2235.64 ▼7.77
Dashboard /wp-admin2,206 ▲185.91 ▲1.04108.75 ▲0.4542.32 ▼1.52
Posts /wp-admin/edit.php2,089 ▼02.12 ▲0.1341.23 ▲3.9235.23 ▲4.12
Add New Post /wp-admin/post-new.php1,514 ▼2017.68 ▼5.38633.40 ▼43.8253.67 ▼4.78
Media Library /wp-admin/upload.php1,391 ▲34.27 ▼0.0396.65 ▼3.6141.34 ▼6.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • 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)
Good news, no errors were detected

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/ss-link-hover-effect/ss-link-hover-effect.php:21
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ss-link-hover-effect/ss-link-hover-effect.php on line 21

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Screenshots: A description for screenshot #0 is missing in ss-link-hover-effect/assets to your readme.txt
  • Screenshots: Screenshot #1 (screenshot.png) image missing
The official readme.txt is a good inspiration

ss-link-hover-effect/ss-link-hover-effect.php 92% from 13 tests

"SS Link Hover Effect" version 3.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected77 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1132753
CSS14924

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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
screenshot.png17.55KB4.77KB▼ 72.82%