83% 1337-social-sharing

Code Review | 1337-Social-Sharing

WordPress plugin 1337-Social-Sharing scored83%from 54 tests.

About plugin

  • Plugin page: 1337-social-sharing
  • Plugin version: 0.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1.0
  • WordPress version: 6.3.1
  • First release: Aug 8, 2017
  • Latest release: Nov 11, 2022
  • Number of updates: 14
  • Update frequency: every 137.2 days
  • Top authors: codelyfe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,435 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.04ms] Passed 4 tests

This is a short check of server-side resources used by 1337-Social-Sharing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.33 ▼8.90
Dashboard /wp-admin3.33 ▲0.0347.01 ▼1.00
Posts /wp-admin/edit.php3.38 ▲0.0345.19 ▼5.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.48 ▼4.52
Media Library /wp-admin/upload.php3.26 ▲0.0332.46 ▼0.64

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_elitesocialsharing_widget
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for 1337-Social-Sharing
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.22 ▼1.342.07 ▲0.4444.24 ▲2.87
Dashboard /wp-admin2,206 ▲185.91 ▲0.87101.89 ▼15.1738.88 ▼7.40
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0433.92 ▼6.1134.87 ▲0.17
Add New Post /wp-admin/post-new.php1,533 ▼023.14 ▼0.04577.02 ▼93.4846.85 ▼3.55
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0793.85 ▼12.6641.14 ▼4.35

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 7 options in the database
    • db_upgraded
    • widget_elitesocialsharing_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/1337-social-sharing/1337-Social-Sharing.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Not Available A current Moment!)
You can look at the official readme.txt

1337-social-sharing/1337-Social-Sharing.php 85% from 13 tests

This is the main PHP file of "1337-Social-Sharing" version 0.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("1337-social-sharing.php" instead of "1337-Social-Sharing.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected81 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1356581

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
19 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/Instagram.png1.40KB0.61KB▼ 56.47%
icons/Github.png1.85KB0.79KB▼ 57.35%
icons/Linkedin.png1.00KB0.49KB▼ 51.08%
icons/Vine.png1.76KB0.71KB▼ 59.82%
icons/Behance.png1.31KB0.64KB▼ 51.45%