83% leenkme

Code Review | leenk.me

WordPress plugin leenk.me scored83%from 54 tests.

About plugin

  • Plugin page: leenkme
  • Plugin version: 2.16.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.6
  • WordPress version: 6.3.1
  • First release: Aug 9, 2010
  • Latest release: Aug 10, 2020
  • Number of updates: 147
  • Update frequency: every 24.9 days
  • Top authors: layotte (99.32%)leenkme (1.36%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active /82,474 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼3.25ms] Passed 4 tests

Server-side resources used by leenk.me
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2244.49 ▼0.46
Dashboard /wp-admin3.52 ▲0.2152.67 ▼2.30
Posts /wp-admin/edit.php3.63 ▲0.2758.57 ▲1.97
Add New Post /wp-admin/post-new.php6.12 ▲0.2392.76 ▼7.56
Media Library /wp-admin/upload.php3.44 ▲0.2140.00 ▼2.69

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
leenkme
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for leenk.me
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲2014.58 ▲0.411.69 ▼0.7344.43 ▼4.25
Dashboard /wp-admin2,197 ▲205.52 ▼0.1699.64 ▼7.0182.03 ▲37.14
Posts /wp-admin/edit.php2,127 ▲272.00 ▼0.0138.46 ▼2.8834.89 ▼3.67
Add New Post /wp-admin/post-new.php6,246 ▲4,70925.95 ▲7.911,040.41 ▲338.9965.97 ▼8.62
Media Library /wp-admin/upload.php1,418 ▲184.12 ▼0.04112.80 ▼7.9785.49 ▲34.51

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • leenkme
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leenkme/facebook.php:765
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leenkme/linkedin.php:830
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/leenkme/leenk.me.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leenkme/twitter.php:670

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

leenkme/leenk.me.php 85% from 13 tests

"leenk.me" version 2.16.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 265 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("leenkme.php" instead of "leenk.me.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,561 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP51,3181902,440
PO File1158177535
JavaScript516412316
CSS2460270

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity46.25
▷ Minimum class complexity26.00
▷ Maximum class complexity82.00
Average method complexity6.48
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/linkedin-16x16.png0.33KB0.33KB0.00%
images/google+-16x16.png0.32KB0.34KB0.00%
images/facebook-16x16.png0.27KB0.28KB0.00%
images/googlebuzz-16x16.png0.76KB1.00KB0.00%
images/leenkme-logo-32x32.png2.97KB0.22KB▼ 92.53%