79% yandex-share

Code Review | Яндекс Поделиться

WordPress plugin Яндекс Поделиться scored79%from 54 tests.

About plugin

  • Plugin page: yandex-share
  • Plugin version: 0.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.6
  • WordPress version: 6.3.1
  • First release: Nov 14, 2013
  • Latest release: Jul 29, 2016
  • Number of updates: 18
  • Update frequency: every 54.9 days
  • Top authors: kovshenin (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /44,311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Яндекс Поделиться
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0150.83 ▲9.44
Dashboard /wp-admin3.32 ▲0.0253.36 ▲0.87
Posts /wp-admin/edit.php3.38 ▲0.0249.02 ▼5.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.55 ▼10.67
Media Library /wp-admin/upload.php3.25 ▲0.0236.64 ▲1.09
Yandex Share /wp-admin/options-general.php?page=yandex-share3.1929.65

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Яндекс Поделиться: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.39 ▲0.042.57 ▲0.8447.67 ▲2.65
Dashboard /wp-admin2,199 ▲195.58 ▼0.0889.35 ▼0.2940.80 ▼0.64
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0639.81 ▲4.6337.30 ▼2.73
Add New Post /wp-admin/post-new.php1,529 ▲320.69 ▼2.78695.21 ▲37.9152.28 ▼2.32
Media Library /wp-admin/upload.php1,407 ▲74.26 ▲0.08102.45 ▼6.3143.18 ▼3.31
Yandex Share /wp-admin/options-general.php?page=yandex-share9172.0324.1627.31

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=yandex-share
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=yandex-share
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 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/yandex-share/yandex-share.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: vkontakte, yandex, share, social, facebook...

yandex-share/yandex-share.php Passed 13 tests

The primary PHP file in "Яндекс Поделиться" version 0.7.1 is used by WordPress to initiate all plugin functionality
59 characters long description:
Add a Yandex Share block to your WordPress posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected184 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1249124
PO File1191960

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected