10% links-synthesis

Code Review | Links synthesis

WordPress plugin Links synthesis scored10%from 54 tests.

About plugin

  • Plugin page: links-synthesis
  • Plugin version: %s by %s', 'SL_frame...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Jun 2, 2013
  • Latest release: Apr 18, 2016
  • Number of updates: 63
  • Update frequency: every 16.7 days
  • Top authors: sedLex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,213 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/links-synthesis/core/utils.class.php+305
    Array and string offset access syntax with curly braces is deprecated

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

Server-side resources used by Links synthesis
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0036.74 ▼3.39
Dashboard /wp-admin3.31 ▼0.0444.46 ▼17.00
Posts /wp-admin/edit.php3.36 ▼0.0045.15 ▼17.46
Add New Post /wp-admin/post-new.php5.89 ▼0.0083.64 ▼6.13
Media Library /wp-admin/upload.php3.23 ▼0.0035.22 ▲0.34

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 173 new files
Database: 1 new table, 6 new options
New tables
wp_pluginSL_links_synthesis
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Links synthesis
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.33 ▼0.011.70 ▲0.1435.18 ▼7.36
Dashboard /wp-admin2,198 ▲215.61 ▲0.0190.88 ▼9.0739.93 ▼2.42
Posts /wp-admin/edit.php2,100 ▼32.15 ▲0.1534.24 ▼10.0034.83 ▼0.75
Add New Post /wp-admin/post-new.php1,526 ▼023.60 ▲0.75679.59 ▲92.0454.70 ▲2.93
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0297.14 ▼0.7441.61 ▲0.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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
Good news, no errors were detected

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 fix the following
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/links-synthesis/core.php
    • > /wp-content/plugins/links-synthesis/links-synthesis.php
    • > /wp-content/plugins/links-synthesis/core.class.php
    • > /wp-content/plugins/links-synthesis/include/grabzit2.1.4/index.php
    • > /wp-content/plugins/links-synthesis/include/grabzit2.1.4/ajax/results.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: message in wp-content/plugins/links-synthesis/include/grabzit2.1.4/handler.php on line 7
    • > PHP Notice
      Undefined index: format in wp-content/plugins/links-synthesis/include/grabzit2.1.4/handler.php on line 11
    • > PHP Warning
      require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/links-synthesis/core/templates/my-plugin.php on line 18
    • > PHP Fatal error
      require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/links-synthesis/core/templates/my-plugin.php on line 18
    • > PHP Notice
      Undefined index: filename in wp-content/plugins/links-synthesis/include/grabzit2.1.4/handler.php on line 10
    • > PHP Notice
      Undefined index: id in wp-content/plugins/links-synthesis/include/grabzit2.1.4/handler.php on line 9
    • > PHP Notice
      Undefined index: customid in wp-content/plugins/links-synthesis/include/grabzit2.1.4/handler.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Links with issues), #2 (All Links), #3 (Some parameters)
The official readme.txt might help

links-synthesis/core.class.php 85% from 13 tests

"Links synthesis" version %s by %s', 'SL_frame...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("links-synthesis.php" instead of "core.class.php")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "%s by %s', 'SL_frame...")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin18,526 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
PHP281,2962,0678,595
PO File323,83908,371
JavaScript7220240932
CSS129313513
Markdown120084
JSON10029
INI2002

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 119)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity55.58
▷ Minimum class complexity1.00
▷ Maximum class complexity398.00
Average method complexity7.65
▷ Minimum method complexity1.00
▷ Maximum method complexity119.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes14.17%
▷ Concrete classes2395.83%
▷ Final classes00.00%
Methods197
▷ Static methods3618.27%
▷ Public methods18995.94%
▷ Protected methods31.52%
▷ Private methods52.54%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants59
▷ Global constants11.69%
▷ Class constants5898.31%
▷ Public constants58100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 0.74MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/img/tab_trad.png0.90KB1.08KB0.00%
core/img/info.png4.30KB1.51KB▼ 64.82%
core/img/flags_sprite.png30.37KB15.11KB▼ 50.23%
img/icon-256x256.png48.50KB15.30KB▼ 68.45%
core/img/tab_plug.png0.71KB0.52KB▼ 27.30%