10% lsd-simple-tweak

Code Review | LSD Simple Tweak

WordPress plugin LSD Simple Tweak scored10%from 54 tests.

About plugin

  • Plugin page: lsd-simple-tweak
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2014
  • Latest release: Nov 28, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: BasMatthee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /671 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/lsd-simple-tweak/lsd-simple-tweak.php+323
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.58ms] Passed 4 tests

Analyzing server-side resources used by LSD Simple Tweak
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.06 ▼1.34
Dashboard /wp-admin3.31 ▲0.0048.94 ▼1.03
Posts /wp-admin/edit.php3.36 ▲0.0046.68 ▲0.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.03 ▼15.98
Media Library /wp-admin/upload.php3.23 ▲0.0035.26 ▲0.37

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

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

Browser metrics Passed 4 tests

Checking browser requirements for LSD Simple Tweak
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.77 ▼0.611.94 ▲0.2849.18 ▲9.07
Dashboard /wp-admin2,206 ▲234.83 ▼0.07116.00 ▲0.5539.16 ▼6.62
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0033.26 ▼3.0235.12 ▼2.43
Add New Post /wp-admin/post-new.php1,533 ▲123.14 ▼0.07670.47 ▼75.6754.85 ▲1.55
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.0698.92 ▲2.7842.51 ▼1.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/lsd-simple-tweak/lsd-simple-tweak.php on line 323

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt might help

lsd-simple-tweak/lsd-simple-tweak.php Passed 13 tests

The main PHP script in "LSD Simple Tweak" version 1.0 is automatically included on every request by WordPress
137 characters long description:
Tweak the performance and automated settings of your Wordpress wsite by checking or unchecking the numerous options on the settings page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin245 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16018245

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin