78% lknsuite

Code Review | Social Media Auto Post with lknsuite.com

WordPress plugin Social Media Auto Post with lknsuite.com scored 78% from 53 tests.

About plugin

  • Plugin page: lknsuite
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8
  • WordPress version: 5.8.1
  • First release: May 19, 2017
  • Latest release: May 20, 2017
  • Number of updates: 14
  • Update frequency: every 1.1 days
  • Top authors: lknsuite (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 665 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼271.59ms] Passed 4 tests

This is a short check of server-side resources used by Social Media Auto Post with lknsuite.com
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1227.89 ▲5.60
Dashboard /wp-admin3.38 ▲0.3250.79 ▲10.08
Posts /wp-admin/edit.php3.42 ▲0.3246.37 ▲0.29
Add New Post /wp-admin/post-new.php6.19 ▲0.76123.00 ▼1,083.95
Media Library /wp-admin/upload.php3.26 ▲0.2531.34 ▼8.30

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 150 new files
Database: 1 new table, no new options
New tables
wp_lknsuite_settings

Browser metrics Passed 4 tests

Social Media Auto Post with lknsuite.com: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,693 ▲8715.94 ▲0.327.89 ▲0.3048.58 ▲0.99
Dashboard /wp-admin2,947 ▲975.94 ▲0.08141.78 ▲7.8499.51 ▼0.76
Posts /wp-admin/edit.php2,726 ▲202.70 ▲0.0165.90 ▼1.1192.17 ▲2.86
Add New Post /wp-admin/post-new.php1,727 ▲24618.68 ▲0.21398.83 ▲27.07130.40 ▲22.11
Media Library /wp-admin/upload.php1,792 ▲205.01 ▲0.03149.86 ▲10.27106.10 ▼13.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_lknsuite_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 103× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/lknsuite/lknlibrary/cache/src/phpFastCache/Util/Directory.php
    • > /wp-content/plugins/lknsuite/lknlibrary/cache/src/phpFastCache/Drivers/Zenddisk/Item.php
    • > /wp-content/plugins/lknsuite/lknlibrary/cache/src/phpFastCache/Exceptions/phpFastCacheIOException.php
    • > /wp-content/plugins/lknsuite/lknlibrary/phpinputfilter/phpinputfilter.inputfilter.php
    • > /wp-content/plugins/lknsuite/lknlibrary/psr/simple-cache/CacheException.php
    • > /wp-content/plugins/lknsuite/lknlibrary/cache/src/phpFastCache/Drivers/Leveldb/Driver.php
    • > /wp-content/plugins/lknsuite/lknlibrary/cache/src/phpFastCache/Drivers/Apcu/Item.php
    • > /wp-content/plugins/lknsuite/lknlibrary/cache/src/phpFastCache/Drivers/Devnull/Driver.php
    • > /wp-content/plugins/lknsuite/lknlibrary/cache/src/phpFastCache/Core/Item/ExtendedCacheItemInterface.php
    • > /wp-content/plugins/lknsuite/lknlibrary/cache/src/phpFastCache/Drivers/Predis/Driver.php
  • 48× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      require(wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/ssdb.php on line 18
    • > PHP Warning
      require(wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/redis.php on line 18
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/memcached.php on line 18
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/cookie.php on line 17
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/decrement.php on line 16
    • > PHP Warning
      require(wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/apc.php on line 17
    • > PHP Warning
      require(wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/../src/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/withoutComposer.php on line 22
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/leveldb.php on line 15
    • > PHP Warning
      require(wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/cookie.php on line 17
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/lknsuite/lknlibrary/cache/docs/examples/zend_disk.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
5 plugin tags: scheduling, auto publish, facebook, auto post, instagram

lknsuite/lknsuite.php 92% from 13 tests

The primary PHP file in "Social Media Auto Post with lknsuite.com" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 312 characters long)

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 detected8,072 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP1262,2945,9307,629
Markdown41340290
JavaScript138474
JSON10052
CSS15019
HTML3008

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.31
▷ Minimum class complexity1.00
▷ Maximum class complexity95.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces35
Interfaces9
Traits8
Classes77
▷ Abstract classes11.30%
▷ Concrete classes7698.70%
▷ Final classes00.00%
Methods644
▷ Static methods396.06%
▷ Public methods49176.24%
▷ Protected methods15023.29%
▷ Private methods30.47%
Functions14
▷ Named functions428.57%
▷ Anonymous functions1071.43%
Constants30
▷ Global constants1653.33%
▷ Class constants1446.67%
▷ Public constants14100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin