94% footer-design-for-elementor

Code Review | Footer Design For Elementor

WordPress plugin Footer Design For Elementor scored 94% from 54 tests.

About plugin

  • Plugin page: footer-design-for...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 5.8.1
  • First release: Apr 9, 2020
  • Latest release: Apr 18, 2020
  • Number of updates: 22
  • Update frequency: every 0.4 days
  • Top authors: magicpages (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 2,060 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼141.29ms] Passed 4 tests

A check of server-side resources used by Footer Design For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1846.20 ▲24.30
Dashboard /wp-admin3.12 ▲0.0751.14 ▲2.50
Posts /wp-admin/edit.php3.21 ▲0.1048.64 ▼0.15
Add New Post /wp-admin/post-new.php5.48 ▲0.0592.15 ▼566.74
Media Library /wp-admin/upload.php3.07 ▲0.0633.95 ▼0.76
All Footeres /wp-admin/edit.php?post_type=wpmp_footer_pt3.1134.92
Add New /wp-admin/post-new.php?post_type=wpmp_footer_pt3.1645.67
Settings /wp-admin/edit.php?post_type=wpmp_footer_pt&page=footer_settings3.0432.85

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Footer Design For Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,828 ▲23216.18 ▲0.5717.47 ▲6.7951.49 ▲2.21
Dashboard /wp-admin3,000 ▲665.92 ▼0.04143.49 ▼17.26145.23 ▲25.71
Posts /wp-admin/edit.php2,790 ▲512.68 ▼0.0170.56 ▼1.8686.61 ▼3.88
Add New Post /wp-admin/post-new.php1,709 ▲12818.64 ▼2.48408.70 ▲23.39109.69 ▼1.61
Media Library /wp-admin/upload.php1,790 ▼205.00 ▼0.01134.37 ▼23.80164.93 ▲44.27
All Footeres /wp-admin/edit.php?post_type=wpmp_footer_pt1,4572.6166.1877.91
Add New /wp-admin/post-new.php?post_type=wpmp_footer_pt2,8659.04211.84169.94
Settings /wp-admin/edit.php?post_type=wpmp_footer_pt&page=footer_settings1,1022.0957.3880.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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
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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WPMP_FOOTER_POST_TYPE - assumed 'WPMP_FOOTER_POST_TYPE' (this will throw an Error in a future version of PHP) in wp-content/plugins/footer-design-for-elementor/includes/views/settings.views.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/footer-design-for-elementor/includes/views/settings.views.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: footer, element builder footer, visual footer, footer for elementor, footer addon elementor...

footer-design-for-elementor/index.php 92% from 13 tests

The primary PHP file in "Footer Design For Elementor" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("footer-design-for-elementor.php" instead of "index.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
No dangerous file extensions were detected441 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP6248271
PO File33638129
Sass20020
CSS13113
JavaScript1008

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.42
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/public/imgs/placeholder.png9.01KB9.59KB0.00%
assets/admin/imgs/logo_menu.png0.28KB0.17KB▼ 37.68%