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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.33 ▼3.54 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.95 ▼5.84 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.87 ▲3.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.77 ▼11.26 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.85 ▲4.87 |
Settings /wp-admin/admin.php?page=dn_footer_contacts_manage&view=settings | 3.22 | 31.95 |
Statistics /wp-admin/admin.php?page=dn_footer_contacts_manage&view=stats | 3.22 | 33.88 |
About /wp-admin/admin.php?page=dn_footer_contacts_manage&view=about | 3.22 | 31.57 |
Footer Contacts /wp-admin/admin.php?page=dn_footer_contacts_manage | 3.22 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 14.44 ▲0.09 | 1.88 ▲0.08 | 38.54 ▼4.02 |
Dashboard /wp-admin | 2,234 ▲60 | 5.69 ▲0.01 | 87.15 ▼8.81 | 77.21 ▲27.59 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.01 ▲0.01 | 39.24 ▲2.30 | 42.54 ▲8.91 |
Add New Post /wp-admin/post-new.php | 1,722 ▲194 | 23.15 ▼0.00 | 653.05 ▼45.36 | 54.84 ▲1.48 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.19 ▲0.08 | 95.79 ▼7.49 | 72.07 ▲27.11 |
Settings /wp-admin/admin.php?page=dn_footer_contacts_manage&view=settings | 1,115 | 2.00 | 27.44 | 29.93 |
Statistics /wp-admin/admin.php?page=dn_footer_contacts_manage&view=stats | 833 | 2.03 | 26.07 | 27.48 |
About /wp-admin/admin.php?page=dn_footer_contacts_manage&view=about | 947 | 2.00 | 23.76 | 29.95 |
Footer Contacts /wp-admin/admin.php?page=dn_footer_contacts_manage | 859 | 2.00 | 22.76 | 22.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
- > PHP Fatal error
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:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6, #7 in dn-footer-contacts/assets to your readme.txt
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 17 | 37 | 1,508 |
PO File | 1 | 284 | 395 | 487 |
CSS | 1 | 15 | 9 | 184 |
JavaScript | 2 | 3 | 3 | 97 |
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 code | 0.66 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 81 | |
▷ Named functions | 81 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/action-status-mobile.png | 7.16KB | 0.25KB | ▼ 96.45% |
images/action-delete.png | 5.63KB | 0.49KB | ▼ 91.25% |
images/white/whatsapp.png | 17.37KB | 2.28KB | ▼ 86.89% |
images/white/instagram.png | 12.00KB | 0.85KB | ▼ 92.89% |
images/action-edit.png | 5.84KB | 0.48KB | ▼ 91.70% |