73% cwd-stealth-links

Code Review | CWD - Stealth Links

WordPress plugin CWD - Stealth Links scored73%from 54 tests.

About plugin

  • Plugin page: cwd-stealth-links
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: May 20, 2020
  • Latest release: Apr 21, 2021
  • Number of updates: 19
  • Update frequency: every 17.7 days
  • Top authors: caiowebdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,519 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.26MB] [CPU: ▼7.59ms] Passed 4 tests

This is a short check of server-side resources used by CWD - Stealth Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.335.54 ▼34.62
Dashboard /wp-admin3.40 ▲0.0952.97 ▲1.60
Posts /wp-admin/edit.php3.45 ▲0.0952.88 ▲3.57
Add New Post /wp-admin/post-new.php6.00 ▲0.1195.19 ▼0.90
Media Library /wp-admin/upload.php3.32 ▲0.0942.05 ▲4.93
Stealth Links /wp-admin/admin.php?page=cwd_stealth_links3.2833.41
Meus links /wp-admin/admin.php?page=cwd_stealth_links_mylinks3.2831.37
Novo link /wp-admin/admin.php?page=cwd_stealth_links_new_link3.2634.85
/wp-admin/admin.php?page=cwd_stealth_links_edit_link3.2631.29

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: 1 new table, 7 new options
New tables
wp_cwd_stealth_links
New WordPress options
widget_recent-comments
cwd_stealth_links
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for CWD - Stealth Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲6513.55 ▼1.102.17 ▲0.0544.10 ▼3.56
Dashboard /wp-admin2,227 ▲394.96 ▲0.10103.65 ▼3.3487.78 ▲44.68
Posts /wp-admin/edit.php2,132 ▲432.03 ▼0.0140.82 ▲1.3537.80 ▲2.14
Add New Post /wp-admin/post-new.php1,559 ▲4023.33 ▲0.01752.84 ▲41.6741.31 ▼20.44
Media Library /wp-admin/upload.php1,424 ▲364.26 ▲0.0297.82 ▼10.5389.04 ▲42.01
Stealth Links /wp-admin/admin.php?page=cwd_stealth_links8712.0626.0926.79
Meus links /wp-admin/admin.php?page=cwd_stealth_links_mylinks8772.1030.9729.51
Novo link /wp-admin/admin.php?page=cwd_stealth_links_new_link8752.0933.7032.78
/wp-admin/admin.php?page=cwd_stealth_links_edit_link8762.0725.8624.82

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cwd_stealth_links_edit_link
    • > Notice in wp-content/plugins/cwd-stealth-links/pages/cwd-stealth-links-edit-link.php+76
    Undefined variable: url
    • > GET request to /wp-admin/admin.php?page=cwd_stealth_links_new_link
    • > Notice in wp-content/plugins/cwd-stealth-links/pages/cwd-stealth-links-new-link.php+64
    Undefined variable: newurl
    • > GET request to /wp-admin/admin.php?page=cwd_stealth_links_edit_link
    • > Notice in wp-content/plugins/cwd-stealth-links/pages/cwd-stealth-links-edit-link.php+54
    Trying to get property 'url' of non-object
    • > GET request to /wp-admin/admin.php?page=cwd_stealth_links_edit_link
    • > Notice in wp-content/plugins/cwd-stealth-links/pages/cwd-stealth-links-edit-link.php+65
    Trying to get property 'newurl' of non-object
    • > GET request to /wp-admin/admin.php?page=cwd_stealth_links_edit_link
    • > Notice in wp-content/plugins/cwd-stealth-links/pages/cwd-stealth-links-edit-link.php+76
    Trying to get property 'ID' of non-object

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/cwd-stealth-links/cwd-stealth-links.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cwd-stealth-links/cwd-stealth-links-functions.php:58

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Requires php: Version format is invalid
You can take inspiration from this readme.txt

cwd-stealth-links/cwd-stealth-links.php Passed 13 tests

Analyzing the main PHP file in "CWD - Stealth Links" version 1.3
41 characters long description:
Crie links customizados com seu domínio.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin700 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP116320500
PO File24666127
CSS19154
JavaScript201219

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.09MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon/cwd_stealth_links.png37.87KB0.38KB▼ 98.99%
icon/cwd_stealth_links_big.png49.32KB3.72KB▼ 92.45%