83% advance-social-sharer

Code Review | Advance Social Sharer

WordPress plugin Advance Social Sharer scored83%from 54 tests.

About plugin

  • Plugin page: advance-social-sh...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Mar 18, 2013
  • Latest release: Oct 4, 2023
  • Number of updates: 55
  • Update frequency: every 70.1 days
  • Top authors: pankaj.sakaria (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /9,809 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.24MB] [CPU: ▼13.97ms] Passed 4 tests

Analyzing server-side resources used by Advance Social Sharer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.93 ▼2.94
Dashboard /wp-admin3.40 ▲0.0947.94 ▼2.63
Posts /wp-admin/edit.php3.45 ▲0.0954.29 ▲1.18
Add New Post /wp-admin/post-new.php4.69 ▼1.2044.92 ▼47.25
Media Library /wp-admin/upload.php3.32 ▲0.0937.19 ▼3.05

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advance Social Sharer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.30 ▼1.114.45 ▲2.7744.84 ▲2.03
Dashboard /wp-admin2,226 ▲355.82 ▼0.0998.46 ▼6.2267.21 ▲21.79
Posts /wp-admin/edit.php2,109 ▲201.97 ▼0.0537.77 ▼2.1141.45 ▲5.27
Add New Post /wp-admin/post-new.php1,534 ▲123.07 ▼0.15670.05 ▼3.8151.98 ▼2.67
Media Library /wp-admin/upload.php1,399 ▲114.23 ▲0.05103.15 ▼11.2273.45 ▲23.50

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-social-sharer/advance-social-sharer.php:615

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Donate link: Invalid url: ""
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === advance-social-sharer === )
Please take inspiration from this readme.txt

advance-social-sharer/advance-social-sharer.php Passed 13 tests

"Advance Social Sharer" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
36 characters long description:
Add Social buttons in to your posts.

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
Success! There were no dangerous files found in this plugin536 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP29352496
CSS12040

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.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
7 PNG files occupy 0.36MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon_small.png0.84KB0.98KB0.00%
screenshot-2.png32.90KB14.42KB▼ 56.16%
screenshot-1.png15.97KB7.02KB▼ 56.04%
images/icon.png2.46KB1.76KB▼ 28.45%
screenshot-5.png107.85KB58.12KB▼ 46.11%