83% skype-share-button

Code Review | Skype share

WordPress plugin Skype share scored83%from 54 tests.

About plugin

  • Plugin page: skype-share-button
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Dec 8, 2015
  • Latest release: Feb 2, 2016
  • Number of updates: 23
  • Update frequency: every 2.7 days
  • Top authors: microsoft-skype (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /5,429 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.05MB] [CPU: ▼8.68ms] Passed 4 tests

An overview of server-side resources used by Skype share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.99 ▲0.49
Dashboard /wp-admin3.36 ▲0.0247.17 ▼15.92
Posts /wp-admin/edit.php3.48 ▲0.1248.37 ▼6.79
Add New Post /wp-admin/post-new.php5.94 ▲0.0692.74 ▼10.31
Media Library /wp-admin/upload.php3.28 ▲0.0634.20 ▼1.68
Skype share button /wp-admin/options-general.php?page=skype-share3.2532.32

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 145 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Skype share
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7814.36 ▲0.019.09 ▲7.2542.47 ▼0.79
Dashboard /wp-admin2,199 ▲305.59 ▲0.0289.12 ▲0.0241.65 ▲4.22
Posts /wp-admin/edit.php2,107 ▲71.99 ▲0.0439.38 ▲4.2635.27 ▲1.21
Add New Post /wp-admin/post-new.php1,537 ▲1123.10 ▼0.01639.97 ▼123.4761.15 ▼1.33
Media Library /wp-admin/upload.php1,407 ▲44.19 ▲0.0293.53 ▼4.2941.58 ▼3.68
Skype share button /wp-admin/options-general.php?page=skype-share1,2502.0323.2625.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/skype-share-button/skype_share.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: social, share button, share, skype share button, social sharing...

skype-share-button/skype_share.php 77% from 13 tests

The main file in "Skype share" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 231 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("skype-share-button.php" instead of "skype_share.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,534 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
PO File671,13902,278
PHP24624256

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions12
▷ Named functions12100.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
There were not PNG files found in your plugin