78% social-media-sharing-wpzest

Code Review | Social Media Sharing | WPZest

WordPress plugin Social Media Sharing | WPZest scored78%from 54 tests.

About plugin

  • Plugin page: social-media-shar...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 18, 2017
  • Latest release: Apr 19, 2017
  • Number of updates: 40
  • Update frequency: every 0.8 days
  • Top authors: wpzest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /628 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
Install script ran successfully

Server metrics [RAM: ▼0.21MB] [CPU: ▼16.23ms] Passed 4 tests

Server-side resources used by Social Media Sharing | WPZest
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.32 ▼2.73
Dashboard /wp-admin3.44 ▲0.0954.06 ▼10.49
Posts /wp-admin/edit.php3.49 ▲0.1452.39 ▼0.85
Add New Post /wp-admin/post-new.php4.73 ▼1.1545.13 ▼50.86
Media Library /wp-admin/upload.php3.36 ▲0.1341.11 ▲1.17

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 318 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
wpzest_social_media_share_config_section
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Social Media Sharing | WPZest
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.60 ▼0.762.06 ▼0.1443.99 ▼0.64
Dashboard /wp-admin2,210 ▲224.87 ▼0.07112.11 ▲8.2445.01 ▲1.69
Posts /wp-admin/edit.php2,097 ▲112.10 ▲0.0634.08 ▼3.0233.96 ▼1.97
Add New Post /wp-admin/post-new.php1,375 ▼13916.70 ▼0.83572.52 ▼69.4345.04 ▼4.98
Media Library /wp-admin/upload.php1,392 ▲44.24 ▼0.05107.93 ▼1.1947.07 ▲1.54
Social Media Share /wp-admin/social-media-sharing-wpzest.php260.440.0916.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • wpzest_social_media_share_config_section
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/social-media-sharing-wpzest/includes/wpzest-view.php
    • > /wp-content/plugins/social-media-sharing-wpzest/includes/wpzest-share.php
    • > /wp-content/plugins/social-media-sharing-wpzest/includes/wpzest-count.php
    • > /wp-content/plugins/social-media-sharing-wpzest/social-media-sharing-wpzest.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/social-media-sharing-wpzest.php
    • > Network (severe)
    wp-admin/social-media-sharing-wpzest.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #10 (Theme-7), #11 (Theme-8), #12 (Theme-9), #13 (Theme-10), #14 (Theme-11), #15 (Theme-12), #16 (Theme-13), #17 (Theme-14), #18 (Theme-15)
  • Tags: There are too many tags (23 tag instead of maximum 10)
The official readme.txt is a good inspiration

social-media-sharing-wpzest/social-media-sharing-wpzest.php Passed 13 tests

Analyzing the main PHP file in "Social Media Sharing | WPZest" version 1.1
129 characters long description:
WPZest Social Media Share is fully loaded with the Social media icons allows you to share your wordpress site content on the web.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin8,477 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS421424,704
SVG1002,671
PHP44261,088
JavaScript21114

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
294 PNG files occupy 6.75MB with 4.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/social-media-theme/theme-05/th5_icon_21.png4.13KB1.05KB▼ 74.62%
includes/images/social-media-theme/theme-02/th2_icon_13.png5.44KB1.56KB▼ 71.42%
includes/images/social-media-theme/theme-05/th5_icon_14.png3.98KB0.92KB▼ 76.99%
includes/images/social-3.png7.21KB3.65KB▼ 49.28%
includes/images/social-media-theme/theme-06/th6_icon_17.png5.20KB1.59KB▼ 69.37%