84% contact-and-social-sticky-bar

Code Review | Contact and social sticky bar

WordPress plugin Contact and social sticky bar scored84%from 54 tests.

About plugin

  • Plugin page: contact-and-socia...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 22, 2021
  • Latest release: Jun 22, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: rider7991 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.03ms] Passed 4 tests

An overview of server-side resources used by Contact and social sticky bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.10 ▲0.78
Dashboard /wp-admin3.35 ▲0.0550.51 ▼7.36
Posts /wp-admin/edit.php3.40 ▲0.0446.67 ▲0.33
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.91 ▼3.28
Media Library /wp-admin/upload.php3.27 ▲0.0433.68 ▼1.82

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Contact and social sticky bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.73 ▲0.341.80 ▲0.0944.02 ▼0.19
Dashboard /wp-admin2,221 ▲335.86 ▲0.93104.42 ▼14.7743.77 ▼0.12
Posts /wp-admin/edit.php2,104 ▲122.01 ▲0.0238.51 ▲0.4932.74 ▼3.85
Add New Post /wp-admin/post-new.php1,538 ▲1023.08 ▼0.01662.31 ▼20.9649.42 ▼5.19
Media Library /wp-admin/upload.php1,400 ▲184.25 ▲0.06100.60 ▼10.7045.35 ▼0.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/contact-and-social-sticky-bar/callbacks.php
    • > /wp-content/plugins/contact-and-social-sticky-bar/contact-and-social-sticky-bar.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
These attributes need to be fixed:
  • Requires php: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

contact-and-social-sticky-bar/contact-and-social-sticky-bar.php Passed 13 tests

"Contact and social sticky bar" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
111 characters long description:
This plugin will display a responsive, sticky bar at the top of your website with the information you provided.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin367 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2259230
JavaScript17058
Sass27047
CSS25232

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected