89% hide-link

Code Review | Hide Link

WordPress plugin Hide Link scored89%from 54 tests.

About plugin

  • Plugin page: hide-link
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: May 4, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 17
  • Update frequency: every 48.6 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,447 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.01MB] [CPU: ▼2.01ms] Passed 4 tests

An overview of server-side resources used by Hide Link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.41 ▼1.18
Dashboard /wp-admin3.32 ▲0.0145.51 ▼11.04
Posts /wp-admin/edit.php3.37 ▲0.0150.90 ▲3.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.22 ▲0.36
Media Library /wp-admin/upload.php3.25 ▲0.0138.85 ▲4.83

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Hide Link
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲8014.48 ▼0.022.39 ▲0.2743.11 ▼4.21
Dashboard /wp-admin2,209 ▲215.88 ▲0.96103.35 ▼13.4238.49 ▼4.74
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0239.35 ▲2.2634.35 ▼0.50
Add New Post /wp-admin/post-new.php1,533 ▼223.13 ▲0.04671.85 ▲29.0456.61 ▲10.04
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.04106.21 ▲4.7944.20 ▲1.75

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: "buymeacoffee.com/josem"
The official readme.txt is a good inspiration

hide-link/hide-link.php 92% from 13 tests

"Hide Link" version 0.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
Everything looks great! No dangerous files found in this plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP221959

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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 functions00.00%
▷ Anonymous functions2100.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
No PNG images were found in this plugin