84% just-show-free-stuff-in-elementor

Code Review | Just show free stuff in Elementor

WordPress plugin Just show free stuff in Elementor scored84%from 54 tests.

About plugin

  • Plugin page: just-show-free-st...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2022
  • Latest release: Jul 30, 2023
  • Number of updates: 5
  • Update frequency: every 52.2 days
  • Top authors: migaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /201 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Just show free stuff in Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.84 ▼3.31
Dashboard /wp-admin3.32 ▼0.0344.78 ▼11.84
Posts /wp-admin/edit.php3.37 ▲0.0149.49 ▲2.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.41 ▼11.18
Media Library /wp-admin/upload.php3.24 ▲0.0134.26 ▼1.68

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Just show free stuff in Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.17 ▼1.034.59 ▲2.6940.80 ▼2.36
Dashboard /wp-admin2,208 ▲234.92 ▼0.90109.01 ▲9.1041.98 ▼1.36
Posts /wp-admin/edit.php2,091 ▲22.06 ▲0.0239.01 ▲1.3333.68 ▲4.13
Add New Post /wp-admin/post-new.php1,530 ▲1623.34 ▲5.86656.07 ▼23.1355.29 ▲7.53
Media Library /wp-admin/upload.php1,452 ▲644.31 ▲0.14103.19 ▼4.5644.96 ▼3.76

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/just-show-free-stuff-in-elementor/elementor_just_free.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
7 plugin tags: elements, elementor, elementor widget, free, widgets...

just-show-free-stuff-in-elementor/elementor_just_free.php 85% from 13 tests

"Just show free stuff in Elementor" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("just-show-free-stuff-in-elementor.php" instead of "elementor_just_free.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin66 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1151345
PHP141921

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin