79% linkgreen-site-integrations

Code Review | LinkGreen Site Integrations

WordPress plugin LinkGreen Site Integrations scored 79% from 54 tests.

About plugin

  • Plugin page: linkgreen-site-in...
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.2-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 21, 2017
  • Latest release: Jul 12, 2019
  • Number of updates: 239
  • Update frequency: every 2.8 days
  • Top authors: linkgreen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,264 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.72ms] Passed 4 tests

Analyzing server-side resources used by LinkGreen Site Integrations
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.62 ▼6.58
Dashboard /wp-admin3.35 ▲0.0545.60 ▲0.39
Posts /wp-admin/edit.php3.40 ▲0.0552.03 ▲1.71
Add New Post /wp-admin/post-new.php5.95 ▲0.0795.84 ▼2.31
Media Library /wp-admin/upload.php3.27 ▲0.0535.49 ▲1.64

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for LinkGreen Site Integrations
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲23714.75 ▲0.3915.68 ▲13.6038.77 ▼0.78
Dashboard /wp-admin2,229 ▲385.85 ▼0.0394.52 ▼5.0440.37 ▼3.89
Posts /wp-admin/edit.php2,109 ▲202.00 ▼0.0139.55 ▲3.0634.23 ▼1.63
Add New Post /wp-admin/post-new.php1,531 ▼1323.20 ▲4.78601.07 ▼49.5043.39 ▼9.48
Media Library /wp-admin/upload.php1,408 ▲234.17 ▲0.0194.00 ▼5.7139.03 ▼5.73

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • 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
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/linkgreen-site-integrations/inc/admin/sidebar.php
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/linkgreen-site-integrations/inc/decode-api.php:3
    • > PHP Notice
      Undefined variable: plugin_url in wp-content/plugins/linkgreen-site-integrations/inc/admin/sidebar.php on line 9
    • > PHP Notice
      Undefined variable: linkgreen_site_api in wp-content/plugins/linkgreen-site-integrations/inc/register-key.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/linkgreen-site-integrations/inc/admin/main.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/linkgreen-site-integrations/inc/main.php:11
    • > PHP Notice
      Undefined variable: version_num in wp-content/plugins/linkgreen-site-integrations/inc/admin/sidebar.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: api, carousel, linkgreen, link green

linkgreen-site-integrations/linkgreen-site-integrations.php Passed 13 tests

The main PHP file in "LinkGreen Site Integrations" ver. 1.4.4 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Display current product lists and more from LinkGreen.

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
Success! There were no dangerous files found in this plugin5,641 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
SVG3112,817
PHP2219619989
CSS36833921
Sass101221808
JavaScript4940106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/linkgreen-iphone.png171.25KB77.48KB▼ 54.76%
img/linkgreen-icon-30x.png3.39KB0.98KB▼ 71.07%
img/linkgreen-wholesale-platform-for-buyers-and-sellers.png11.00KB5.55KB▼ 49.58%
img/linkgreen-white-logo.png5.10KB2.98KB▼ 41.58%