83% digital-marketing-agency-templates-for-elementor

Code Review | Digital Marketing and Agency Templates Addons for Elementor

WordPress plugin Digital Marketing and Agency Templates Addons for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: digital-marketing...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Jul 8, 2020
  • Latest release: Aug 18, 2020
  • Number of updates: 6
  • Update frequency: every 6.8 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,640 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Digital Marketing and Agency Templates Addons for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.70 ▼10.59
Dashboard /wp-admin3.31 ▲0.0154.93 ▼0.18
Posts /wp-admin/edit.php3.36 ▲0.0153.60 ▲0.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.40 ▼26.57
Media Library /wp-admin/upload.php3.23 ▲0.0040.88 ▲4.16

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Digital Marketing and Agency Templates Addons for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.49 ▲0.201.81 ▼0.2542.78 ▼0.74
Dashboard /wp-admin2,238 ▲325.87 ▲0.0699.33 ▼8.3537.84 ▼7.74
Posts /wp-admin/edit.php2,120 ▲232.03 ▼0.0137.08 ▼2.5135.81 ▼1.33
Add New Post /wp-admin/post-new.php1,543 ▲1723.20 ▲5.82635.81 ▼30.2161.42 ▼15.40
Media Library /wp-admin/upload.php1,414 ▲144.27 ▲0.05110.24 ▲1.3646.09 ▼6.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DigitalMarketingTemplates\\add_action() in wp-content/plugins/digital-marketing-agency-templates-for-elementor/includes/plugin.php:158

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
5 plugin tags: addon, elementor, agency, template, digital marketing

digital-marketing-agency-templates-for-elementor/digital-marketing-elementor-templates.php 85% from 13 tests

The principal PHP file in "Digital Marketing and Agency Templates Addons for Elementor" v. 1.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("digital-marketing-agency-templates-for-elementor.php" instead of "digital-marketing-elementor-templates.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected17,367 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
SVG52139,454
CSS114271674,986
PHP215181,5692,319
JavaScript1078117596
HTML1009
JSON3003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.16
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes15.26%
Methods134
▷ Static methods10.75%
▷ Public methods9973.88%
▷ Protected methods3324.63%
▷ Private methods21.49%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 2.22MB with 1.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/instructions/elementor-add-templates.png7.29KB4.14KB▼ 43.22%
assets/images/default/testimonial-arrow-top.png4.00KB2.14KB▼ 46.33%
assets/images/default/t5-hero-shape.png218.06KB87.82KB▼ 59.72%
assets/images/default/search-engine.png54.50KB22.17KB▼ 59.31%
assets/images/default/priching-img-1.png11.22KB5.17KB▼ 53.93%