83% dj-elementor-frontend

Code Review | Frontend Post for Elementor

WordPress plugin Frontend Post for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: dj-elementor-fron...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 19, 2017
  • Latest release: Jan 6, 2018
  • Number of updates: 17
  • Update frequency: every 1.1 days
  • Top authors: djekanovic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,512 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼16.38ms] Passed 4 tests

Analyzing server-side resources used by Frontend Post for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.90 ▲8.94
Dashboard /wp-admin3.21 ▼0.1030.13 ▼16.71
Posts /wp-admin/edit.php3.27 ▼0.0836.52 ▼10.38
Add New Post /wp-admin/post-new.php5.45 ▼0.4462.93 ▼32.72
Media Library /wp-admin/upload.php3.21 ▼0.0230.77 ▼5.70

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Frontend Post for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲19215.07 ▲0.9317.50 ▲15.7339.99 ▼0.44
Dashboard /wp-admin2,206 ▲185.90 ▼0.17113.21 ▲14.5642.03 ▲1.21
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0239.43 ▲1.5233.01 ▼7.65
Add New Post /wp-admin/post-new.php1,533 ▼223.21 ▲0.06637.62 ▼12.9953.90 ▼2.00
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0396.93 ▼5.7843.86 ▼0.55

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/dj-elementor-frontend/widgets/inc/style-tinymce.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/dj-elementor-frontend/widgets/inc/style-button.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/dj-elementor-frontend/widgets/inc/style-placeholder.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/dj-elementor-frontend/widgets/inc/post-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/dj-elementor-frontend/widgets/inc/content.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/dj-elementor-frontend/widgets/inc/style-forms.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/dj-elementor-frontend/widgets/inc/style-image-button.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/dj-elementor-frontend/widgets/inc/logged-out-html.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/dj-elementor-frontend/widgets/inc/style-label.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/dj-elementor-frontend/widgets/inc/default.php:10

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)
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

dj-elementor-frontend/dj-frontend-post.php 77% from 13 tests

This is the main PHP file of "Frontend Post for Elementor" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dj-elementor-frontend.php" instead of "dj-frontend-post.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,046 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP153982621,966
JavaScript3403859
CSS17021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.32
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1155.00%
▷ Protected methods630.00%
▷ Private methods315.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin