84% sharespring

Code Review | ShareSpring

WordPress plugin ShareSpring scored84%from 54 tests.

About plugin

  • Plugin page: sharespring
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.0.3
  • WordPress version: 6.3.1
  • First release: Aug 25, 2016
  • Latest release: Jan 9, 2019
  • Number of updates: 15
  • Update frequency: every 57.8 days
  • Top authors: sharespring (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,244 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.33ms] Passed 4 tests

An overview of server-side resources used by ShareSpring
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.12 ▼3.38
Dashboard /wp-admin3.35 ▲0.0454.05 ▼0.96
Posts /wp-admin/edit.php3.40 ▲0.0452.04 ▲5.48
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.52 ▲2.69
Media Library /wp-admin/upload.php3.27 ▲0.0435.13 ▲0.35
ShareSpring /wp-admin/options-general.php?page=sharespring3.2434.44

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ShareSpring
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.421.66 ▼0.1940.21 ▼3.13
Dashboard /wp-admin2,199 ▲195.63 ▲0.0489.97 ▼4.4741.76 ▼0.34
Posts /wp-admin/edit.php2,101 ▼21.94 ▼0.0040.00 ▲4.5634.32 ▼1.90
Add New Post /wp-admin/post-new.php1,529 ▲123.10 ▲2.10636.42 ▼57.7952.37 ▲0.06
Media Library /wp-admin/upload.php1,401 ▲44.19 ▼0.0197.94 ▼13.6844.03 ▼6.27
ShareSpring /wp-admin/options-general.php?page=sharespring8331.9926.3231.43

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_sharespring_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sharespring/_inc/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sharespring/_inc/shortcode.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sharespring/_inc/settings.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sharespring/_inc/settings.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (72 tag instead of maximum 10)
You can take inspiration from this readme.txt

sharespring/sharespring.php 92% from 13 tests

This is the main PHP file of "ShareSpring" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected178 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP537106171
JSON1007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin