83% stan-easy-connect

Code Review | Stan Easy Connect

WordPress plugin Stan Easy Connect scored83%from 54 tests.

About plugin

  • Plugin page: stan-easy-connect
  • Plugin version: 1.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 5, 2020
  • Latest release: Nov 2, 2023
  • Number of updates: 108
  • Update frequency: every 10.7 days
  • Top authors: jnser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,527 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.29MB] [CPU: ▲4.62ms] Passed 4 tests

Server-side resources used by Stan Easy Connect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3150.93 ▲5.83
Dashboard /wp-admin3.64 ▲0.3355.45 ▲7.16
Posts /wp-admin/edit.php3.67 ▲0.3158.36 ▲10.00
Add New Post /wp-admin/post-new.php6.17 ▲0.2895.88 ▼3.40
Media Library /wp-admin/upload.php3.50 ▲0.2643.28 ▲8.88
Stan Easy Connect /wp-admin/options-general.php?page=stan-easy-connect3.4737.37

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
stan_easy_connect_settings
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Stan Easy Connect
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲13413.46 ▼0.898.61 ▲6.6843.06 ▼0.80
Dashboard /wp-admin2,206 ▲285.60 ▼0.1198.94 ▼11.1239.16 ▼4.62
Posts /wp-admin/edit.php2,108 ▲82.00 ▲0.0641.32 ▲7.7536.81 ▲2.63
Add New Post /wp-admin/post-new.php1,533 ▲223.13 ▼0.20645.12 ▲53.8479.56 ▲22.98
Media Library /wp-admin/upload.php1,408 ▲84.26 ▲0.10104.56 ▲7.1049.33 ▲9.15
Stan Easy Connect /wp-admin/options-general.php?page=stan-easy-connect9221.7126.4227.95

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • stan_easy_connect_settings
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/stan-easy-connect/public/partials/stan-easy-connect-public-display.php
    • > /wp-content/plugins/stan-easy-connect/admin/partials/stan-easy-connect-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4 in stan-easy-connect/assets to your readme.txt
You can take inspiration from this readme.txt

stan-easy-connect/stan-easy-connect.php 92% from 13 tests

"Stan Easy Connect" version 1.4.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 242 characters long)

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
No dangerous file extensions were detected1,360 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP153581,0121,180
CSS2158114
JavaScript2152766

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods79
▷ Static methods45.06%
▷ Public methods6886.08%
▷ Protected methods00.00%
▷ Private methods1113.92%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/logo-stan.png27.01KB9.85KB▼ 63.54%