84% simple-social-shout-for-givewp

Code Review | Simple Social Shout for GiveWP

WordPress plugin Simple Social Shout for GiveWP scored84%from 54 tests.

About plugin

  • Plugin page: simple-social-sho...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: Jan 18, 2020
  • Latest release: Mar 28, 2022
  • Number of updates: 16
  • Update frequency: every 50.1 days
  • Top authors: webdevmattcrom (93.75%)jason_the_adams (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /4,945 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Simple Social Shout for GiveWP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.18 ▼8.50
Dashboard /wp-admin3.31 ▼0.0453.04 ▼7.90
Posts /wp-admin/edit.php3.36 ▲0.0047.99 ▲6.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.60 ▼12.24
Media Library /wp-admin/upload.php3.23 ▲0.0032.12 ▼3.73

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Social Shout for GiveWP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.81 ▲0.232.16 ▲0.2641.70 ▼5.40
Dashboard /wp-admin2,209 ▲274.83 ▼1.0296.37 ▼23.7839.36 ▼5.95
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0140.31 ▲2.6435.83 ▲2.33
Add New Post /wp-admin/post-new.php1,533 ▲1923.61 ▲5.94678.81 ▼31.5149.63 ▼5.89
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0296.59 ▼18.3042.69 ▼3.59

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-social-shout-for-givewp/includes/main-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/simple-social-shout-for-givewp/templates/basic-template.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/simple-social-shout-for-givewp/includes/admin/subscribe.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: linkedin, twitter, social share, social sharing, givewp...

simple-social-shout-for-givewp/simple-social-shout-4-givewp.php 85% from 13 tests

"Simple Social Shout for GiveWP" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-social-shout-for-givewp.php" instead of "simple-social-shout-4-givewp.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin908 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7132252768
CSS217390
Markdown113030
SVG30020

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods20
▷ Static methods15.00%
▷ Public methods1575.00%
▷ Protected methods00.00%
▷ Private methods525.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot-1.png60.48KB23.68KB▼ 60.84%