79% linkmarklet

Code Review | Linkmarklet

WordPress plugin Linkmarklet scored79%from 54 tests.

About plugin

  • Plugin page: linkmarklet
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2012
  • Latest release: May 1, 2015
  • Number of updates: 33
  • Update frequency: every 36.2 days
  • Top authors: jchristopher (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,933 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Linkmarklet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.47 ▼6.21
Dashboard /wp-admin3.32 ▲0.0247.11 ▼4.83
Posts /wp-admin/edit.php3.37 ▲0.0252.07 ▼2.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.86 ▼17.73
Media Library /wp-admin/upload.php3.25 ▲0.0238.52 ▲1.69
Linkmarklet /wp-admin/options-general.php?page=linkmarklet/linkmarklet.php3.2336.20

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Linkmarklet: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▲0.051.67 ▼0.0243.57 ▲3.20
Dashboard /wp-admin2,196 ▲285.63 ▲0.0091.65 ▲5.2638.87 ▼7.00
Posts /wp-admin/edit.php2,104 ▲11.98 ▼0.0239.17 ▼3.8934.25 ▼11.04
Add New Post /wp-admin/post-new.php1,531 ▼1123.02 ▲0.33683.22 ▲24.0868.09 ▲10.96
Media Library /wp-admin/upload.php1,407 ▲74.16 ▼0.0598.04 ▼15.6150.17 ▲2.30
Linkmarklet /wp-admin/options-general.php?page=linkmarklet/linkmarklet.php9672.0025.7333.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/linkmarklet/index.php
    • > /wp-content/plugins/linkmarklet/remove-this.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/linkmarklet/linkmarklet-options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/linkmarklet/linkmarklet.php:12

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: adopt-me, linkblog, press this, link

linkmarklet/linkmarklet.php Passed 13 tests

The main file in "Linkmarklet" v. 0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
126 characters long description:
Alternative to Press This! specifically geared to linkblogging. Quickly post while saving a link to a Custom Field you define.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,877 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS133501,142
PHP512659666
Markdown231069

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
screenshot-1.png42.73KB16.60KB▼ 61.14%
images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%