83% 1337-social-sharing

Code Review | 1337-Social-Sharing

WordPress plugin 1337-Social-Sharing scored 83% from 54 tests.

About plugin

  • Plugin page: 1337-social-sharing
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.1
  • WordPress version: 5.9.2
  • First release: Aug 8, 2017
  • Latest release: Nov 28, 2017
  • Number of updates: 11
  • Update frequency: every 11.3 days
  • Top authors: codelyfe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 872 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼295.61ms] Passed 4 tests

A check of server-side resources used by 1337-Social-Sharing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0462.20 ▲12.59
Dashboard /wp-admin3.44 ▲0.0333.18 ▼1.01
Posts /wp-admin/edit.php3.67 ▲0.0339.07 ▲1.60
Add New Post /wp-admin/post-new.php6.91 ▼0.0689.46 ▼1,181.36
Media Library /wp-admin/upload.php3.32 ▲0.0324.12 ▼1.65

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_elitesocialsharing_widget

Browser metrics Passed 4 tests

An overview of browser requirements for 1337-Social-Sharing
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2115.83 ▲0.246.88 ▲0.812.50 ▲0.25
Dashboard /wp-admin2,892 ▲346.15 ▼0.05115.44 ▼17.96154.68 ▼13.26
Posts /wp-admin/edit.php2,694 ▲33.23 ▼0.0065.07 ▲1.59143.47 ▲4.40
Add New Post /wp-admin/post-new.php1,661 ▼9716.63 ▼4.78453.06 ▼18.60154.48 ▲1.27
Media Library /wp-admin/upload.php1,698 ▼35.49 ▲0.04137.60 ▼2.98187.29 ▲3.45

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_elitesocialsharing_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/1337-social-sharing/1337-Social-Sharing.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Not Available A current Moment!) image missing
Please take inspiration from this readme.txt

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

The primary PHP file in "1337-Social-Sharing" version 0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("1337-social-sharing.php" instead of "1337-Social-Sharing.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1345684

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin