83% deen-post-layouts-addon-for-elementor

Code Review | Deen Post Layouts Addon for Elementor

WordPress plugin Deen Post Layouts Addon for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: deen-post-layouts...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Dec 20, 2022
  • Latest release: Aug 14, 2023
  • Number of updates: 7
  • Update frequency: every 34.9 days
  • Top authors: debuggersstudio (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) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.55ms] Passed 4 tests

A check of server-side resources used by Deen Post Layouts Addon for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0446.90 ▲1.68
Dashboard /wp-admin3.39 ▲0.0448.84 ▼3.04
Posts /wp-admin/edit.php3.50 ▲0.1047.62 ▼6.86
Add New Post /wp-admin/post-new.php5.97 ▲0.0491.30 ▼5.99
Media Library /wp-admin/upload.php3.31 ▲0.0438.82 ▲1.83

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Deen Post Layouts Addon for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.18 ▼0.531.84 ▲0.1444.48 ▼2.93
Dashboard /wp-admin2,209 ▲355.52 ▼0.0587.31 ▼4.9341.28 ▼0.08
Posts /wp-admin/edit.php2,117 ▲171.98 ▲0.0135.34 ▼1.9534.83 ▲1.89
Add New Post /wp-admin/post-new.php1,538 ▲523.17 ▲0.36638.14 ▼54.3050.60 ▼7.59
Media Library /wp-admin/upload.php1,417 ▲144.28 ▲0.10103.81 ▲1.5145.12 ▼0.94

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

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deen-post-layouts-addon-for-elementor/deen-post-layouts-addon.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: The official readme.txt is a good inspiration

deen-post-layouts-addon-for-elementor/deen-post-layouts-addon.php 69% from 13 tests

"Deen Post Layouts Addon for Elementor" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("deen-post-layouts-addon-for-elementor.php" instead of "deen-post-layouts-addon.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version does not match the one declared in readme.txt ("5.9.0" instead of "5.2")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.2")

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 plugin17,561 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,546
CSS7225185,618
PHP32111142,123
PO File1115141247
JavaScript13227

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.30
Average class complexity36.00
▷ Minimum class complexity10.00
▷ Maximum class complexity62.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods21
▷ Static methods14.76%
▷ Public methods1990.48%
▷ Protected methods29.52%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/Ov.png5.46KB1.55KB▼ 71.68%
assets/img/video.png1.80KB1.19KB▼ 34.07%
assets/img/placeholder.png6.38KB3.16KB▼ 50.44%