84% footer-design-for-wpbakery-page-builder

Code Review | Footer Design For WPBakery Page Builder

WordPress plugin Footer Design For WPBakery Page Builder scored84%from 54 tests.

About plugin

  • Plugin page: footer-design-for...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Apr 18, 2020
  • Latest release: Apr 18, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: magicpages (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,573 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.26ms] Passed 4 tests

This is a short check of server-side resources used by Footer Design For WPBakery Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.13 ▼1.53
Dashboard /wp-admin3.37 ▲0.0348.65 ▼18.65
Posts /wp-admin/edit.php3.48 ▲0.1354.85 ▲7.75
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.14 ▼18.55
Media Library /wp-admin/upload.php3.29 ▲0.0638.09 ▲1.69
All Footeres /wp-admin/edit.php?post_type=wpmp_footer_vc_pt3.3339.40
Add New /wp-admin/post-new.php?post_type=wpmp_footer_vc_pt3.4046.74
Settings /wp-admin/edit.php?post_type=wpmp_footer_vc_pt&page=footer_setting3.2636.17

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Footer Design For WPBakery Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.96 ▼0.426.13 ▲4.4540.15 ▼2.56
Dashboard /wp-admin2,233 ▲485.86 ▲0.01102.28 ▼7.8378.27 ▲32.34
Posts /wp-admin/edit.php2,119 ▲301.98 ▼0.0139.42 ▲1.8937.81 ▲1.87
Add New Post /wp-admin/post-new.php1,540 ▲2623.28 ▲5.70643.62 ▲21.67192.67 ▲141.73
Media Library /wp-admin/upload.php1,415 ▲274.26 ▲0.10121.91 ▲11.6680.54 ▲34.67
All Footeres /wp-admin/edit.php?post_type=wpmp_footer_vc_pt1,0921.9836.7430.40
Add New /wp-admin/post-new.php?post_type=wpmp_footer_vc_pt2,1757.55166.82122.06
Settings /wp-admin/edit.php?post_type=wpmp_footer_vc_pt&page=footer_setting8502.0226.0728.44

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/footer-design-for-wpbakery-page-builder/includes/views/settings.views.php:6
    • > PHP Warning
      Use of undefined constant WPMP_FOOTER_VC_POST_TYPE - assumed 'WPMP_FOOTER_VC_POST_TYPE' (this will throw an Error in a future version of PHP) in wp-content/plugins/footer-design-for-wpbakery-page-builder/includes/views/settings.views.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (it is very easy), #2 (Great footer)
You can take inspiration from this readme.txt

footer-design-for-wpbakery-page-builder/index.php 92% from 13 tests

The principal PHP file in "Footer Design For WPBakery Page Builder" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("footer-design-for-wpbakery-page-builder.php" instead of "index.php")

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 plugin311 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6267270
Sass20020
CSS13113
JavaScript1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.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

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/icon.png2.91KB0.17KB▼ 94.05%
assets/frontend/images/placeholder.png9.01KB9.59KB0.00%
assets/frontend/images/Screenshot_2.png78.13KB34.27KB▼ 56.13%
assets/frontend/images/Screenshot_1.png69.12KB36.25KB▼ 47.56%
assets/frontend/images/Screenshot_3.png53.16KB21.58KB▼ 59.40%