77% sim-clickable-links

Code Review | Clickable Links, Makes WordPress Post links Clickable

WordPress plugin Clickable Links, Makes WordPress Post links Clickable scored77%from 54 tests.

About plugin

  • Plugin page: sim-clickable-links
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 11, 2020
  • Latest release: Jun 28, 2021
  • Number of updates: 20
  • Update frequency: every 23.7 days
  • Top authors: icelayer (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /1,856 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Clickable Links, Makes WordPress Post links Clickable
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.35 ▼4.34
Dashboard /wp-admin3.31 ▼0.0450.84 ▼17.80
Posts /wp-admin/edit.php3.36 ▲0.0046.21 ▼6.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.71 ▼9.10
Media Library /wp-admin/upload.php3.23 ▲0.0041.06 ▲3.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Clickable Links, Makes WordPress Post links Clickable
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.25 ▼0.031.94 ▲0.1145.85 ▲5.56
Dashboard /wp-admin2,195 ▲155.63 ▲0.0689.08 ▼4.3939.20 ▼0.85
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0134.50 ▼5.9235.06 ▼1.57
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▲0.10692.72 ▲24.3755.31 ▼5.21
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.0495.21 ▼13.6145.99 ▼3.14

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/sim-clickable-links/vendor/devuri/wp-admin-page/src/example/sample-plugin/src/Admin/pages/my-plugin/my-plugin.admin.php
    • > /wp-content/plugins/sim-clickable-links/vendor/devuri/wp-admin-page/src/example/sample-plugin/src/Admin/pages/my-plugin/my-plugin-slug.admin.php
    • > /wp-content/plugins/sim-clickable-links/vendor/devuri/wp-admin-page/src/example/sample-plugin/src/Admin/pages/my-plugin/menu-two.admin.php
    • > /wp-content/plugins/sim-clickable-links/vendor/devuri/wp-admin-page/src/example/sample-plugin/src/Admin/pages/my-plugin/etc.admin.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/sim-clickable-links/vendor/devuri/wp-admin-page/src/pages/footer.admin.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPAdminPage\\AdminPage' not found in wp-content/plugins/sim-clickable-links/vendor/devuri/wp-admin-page/src/example/sample-plugin/src/Admin/MyPluginAdmin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (2.) image missing
You can look at the official readme.txt

sim-clickable-links/clickable-links.php 77% from 13 tests

The main PHP file in "Clickable Links, Makes WordPress Post links Clickable" ver. 1.7.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sim-clickable-links.php" instead of "clickable-links.php")

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
Everything looks great! No dangerous files found in this plugin1,543 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP203757771,250
CSS1152129
JSON30092
Markdown120069
HTML3003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity13.11
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes337.50%
Methods94
▷ Static methods2223.40%
▷ Public methods8792.55%
▷ Protected methods00.00%
▷ Private methods77.45%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.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 files were detected