84% social-side-contact

Code Review | Social Side Contact

WordPress plugin Social Side Contact scored84%from 54 tests.

About plugin

  • Plugin page: social-side-contact
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 19, 2019
  • Latest release: Mar 19, 2019
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: mfaster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /752 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.02MB] [CPU: ▼3.03ms] Passed 4 tests

This is a short check of server-side resources used by Social Side Contact
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.59 ▼2.21
Dashboard /wp-admin3.33 ▲0.0249.47 ▼5.41
Posts /wp-admin/edit.php3.38 ▲0.0252.03 ▼4.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.86 ▲0.06
Media Library /wp-admin/upload.php3.25 ▲0.0238.05 ▲1.84

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Social Side Contact
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11714.35 ▼0.042.10 ▲0.5542.70 ▼7.01
Dashboard /wp-admin2,214 ▲345.61 ▼0.0486.35 ▼4.2540.33 ▼7.93
Posts /wp-admin/edit.php2,116 ▲131.99 ▼0.1139.50 ▼4.2536.56 ▼0.80
Add New Post /wp-admin/post-new.php1,549 ▲2325.19 ▲2.16651.28 ▼29.2371.52 ▲12.57
Media Library /wp-admin/upload.php1,419 ▲224.18 ▲0.0496.76 ▼4.1941.70 ▼7.41

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-side-contact/social-contact.php:20

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #4 (Showing plugin on mobile) image required
The official readme.txt might help

social-side-contact/social-contact.php 92% from 13 tests

The primary PHP file in "Social Side Contact" version 1.0.9 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-side-contact.php" instead of "social-contact.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin147 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1261872
CSS12241
Markdown122034

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/facebook-icon.png1.51KB0.68KB▼ 55.35%
images/LINE_Icon.png13.85KB4.09KB▼ 70.48%
images/emailIcon.png69.51KB14.63KB▼ 78.96%
images/phoneicon.png106.27KB23.90KB▼ 77.51%
images/Messenger_Icon.png21.63KB7.93KB▼ 63.32%