78% dn-footer-contacts

Code Review | DN Footer Contacts

WordPress plugin DN Footer Contacts scored78%from 54 tests.

About plugin

  • Plugin page: dn-footer-contacts
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 8, 2020
  • Latest release: Jun 23, 2023
  • Number of updates: 24
  • Update frequency: every 38.6 days
  • Top authors: digireturn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.29ms] Passed 4 tests

An overview of server-side resources used by DN Footer Contacts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.33 ▼3.54
Dashboard /wp-admin3.33 ▲0.0344.95 ▼5.84
Posts /wp-admin/edit.php3.38 ▲0.0246.87 ▲3.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.77 ▼11.26
Media Library /wp-admin/upload.php3.25 ▲0.0237.85 ▲4.87
Settings /wp-admin/admin.php?page=dn_footer_contacts_manage&view=settings3.2231.95
Statistics /wp-admin/admin.php?page=dn_footer_contacts_manage&view=stats3.2233.88
About /wp-admin/admin.php?page=dn_footer_contacts_manage&view=about3.2231.57
Footer Contacts /wp-admin/admin.php?page=dn_footer_contacts_manage3.2229.24

Server storage [IO: ▲0.51MB] [DB: ▲0.31MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for DN Footer Contacts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8914.44 ▲0.091.88 ▲0.0838.54 ▼4.02
Dashboard /wp-admin2,234 ▲605.69 ▲0.0187.15 ▼8.8177.21 ▲27.59
Posts /wp-admin/edit.php2,142 ▲422.01 ▲0.0139.24 ▲2.3042.54 ▲8.91
Add New Post /wp-admin/post-new.php1,722 ▲19423.15 ▼0.00653.05 ▼45.3654.84 ▲1.48
Media Library /wp-admin/upload.php1,442 ▲424.19 ▲0.0895.79 ▼7.4972.07 ▲27.11
Settings /wp-admin/admin.php?page=dn_footer_contacts_manage&view=settings1,1152.0027.4429.93
Statistics /wp-admin/admin.php?page=dn_footer_contacts_manage&view=stats8332.0326.0727.48
About /wp-admin/admin.php?page=dn_footer_contacts_manage&view=about9472.0023.7629.95
Footer Contacts /wp-admin/admin.php?page=dn_footer_contacts_manage8592.0022.7622.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 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
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dn-footer-contacts/dn-footer-contacts.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'DN_FOOTER_CONTACTS_PATHincludes/admin-contacts.php' (include_path='.:/usr/share/php') in wp-content/plugins/dn-footer-contacts/includes/admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dn-footer-contacts/includes/admin-contacts.php:273
    • > PHP Warning
      Use of undefined constant DN_FOOTER_CONTACTS_PATH - assumed 'DN_FOOTER_CONTACTS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dn-footer-contacts/includes/admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dn-footer-contacts/includes/admin-ajax.php:2
    • > PHP Warning
      require_once(DN_FOOTER_CONTACTS_PATHincludes/admin-contacts.php): failed to open stream: No such file or directory in wp-content/plugins/dn-footer-contacts/includes/admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dn-footer-contacts/includes/admin-notify.php:21

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

dn-footer-contacts/dn-footer-contacts.php Passed 13 tests

"DN Footer Contacts" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
110 characters long description:
Elegant bottom bar with "Call to Action" buttons to be contacted immediately and easily and clicks statistics.

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 plugin2,276 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1117371,508
PO File1284395487
CSS1159184
JavaScript23397

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions81
▷ Named functions81100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
28 PNG files occupy 0.25MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/action-status-mobile.png7.16KB0.25KB▼ 96.45%
images/action-delete.png5.63KB0.49KB▼ 91.25%
images/white/whatsapp.png17.37KB2.28KB▼ 86.89%
images/white/instagram.png12.00KB0.85KB▼ 92.89%
images/action-edit.png5.84KB0.48KB▼ 91.70%