90% tweaks-for-elementor

Code Review | Tweaks for Elementor

WordPress plugin Tweaks for Elementor scored90%from 54 tests.

About plugin

  • Plugin page: tweaks-for-elementor
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: May 13, 2020
  • Latest release: May 30, 2022
  • Number of updates: 17
  • Update frequency: every 43.9 days
  • Top authors: CDK Comp (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /2,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by Tweaks for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0147.76 ▲11.31
Dashboard /wp-admin3.32 ▲0.0148.39 ▼5.41
Posts /wp-admin/edit.php3.37 ▲0.0144.24 ▼1.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.50 ▼4.89
Media Library /wp-admin/upload.php3.24 ▲0.0132.86 ▼2.26

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Tweaks for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲4814.51 ▼0.051.68 ▼0.2143.15 ▲1.42
Dashboard /wp-admin2,201 ▲245.62 ▲0.0196.04 ▲0.5044.39 ▼2.73
Posts /wp-admin/edit.php2,109 ▲91.95 ▼0.0533.59 ▼0.7434.24 ▼4.32
Add New Post /wp-admin/post-new.php1,535 ▼723.57 ▲5.26609.82 ▼41.8850.49 ▼20.55
Media Library /wp-admin/upload.php1,412 ▲124.11 ▼0.08107.46 ▲12.8146.10 ▲3.61

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: speed, intl-tel, seo, design, optimization...

tweaks-for-elementor/tweaks-for-elementor.php 92% from 13 tests

Analyzing the main PHP file in "Tweaks for Elementor" version 1.0.6
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin470 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP562240358
JavaScript618484
Sass26026
CSS1001
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.33
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.39MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/images/flags@2x.png66.33KB68.11KB0.00%
assets/images/flags.png23.09KB23.39KB0.00%
assets/banner-1544x500.png90.19KB35.02KB▼ 61.17%
assets/screenshot-1.png41.53KB47.59KB0.00%
assets/banner-772x250.png59.72KB21.39KB▼ 64.19%