10% ignite-online-social-share

Code Review | Simple Social Share

WordPress plugin Simple Social Share scored10%from 54 tests.

About plugin

  • Plugin page: ignite-online-soc...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 7, 2018
  • Latest release: Jun 27, 2018
  • Number of updates: 6
  • Update frequency: every 3.5 days
  • Top authors: igniteonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/ignite-online-social-share/ignite-social.php+14
    require_once(vendor/autoload.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.45ms] Passed 4 tests

A check of server-side resources used by Simple Social Share
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0048.31 ▲7.40
Dashboard /wp-admin3.31 ▲0.0043.27 ▼7.29
Posts /wp-admin/edit.php3.36 ▲0.0044.75 ▼11.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.93 ▼16.79
Media Library /wp-admin/upload.php3.23 ▲0.0035.58 ▲1.63

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Social Share
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.441.72 ▼0.0942.68 ▼1.00
Dashboard /wp-admin2,200 ▲125.76 ▼0.14105.89 ▲4.3137.49 ▼8.10
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0440.58 ▼2.5734.40 ▼3.48
Add New Post /wp-admin/post-new.php1,533 ▼423.35 ▲5.27587.77 ▼20.6562.37 ▲1.73
Media Library /wp-admin/upload.php1,391 ▲34.14 ▼0.1594.61 ▼6.5943.94 ▲0.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/ignite-online-social-share/ignite-social.php on line 14
    • > PHP Fatal error
      require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/ignite-online-social-share/ignite-social.php on line 14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: icons, social, ignite, share

ignite-online-social-share/ignite-social.php 92% from 13 tests

This is the main PHP file of "Simple Social Share" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ignite-online-social-share.php" instead of "ignite-social.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown17046
JSON10031
PHP110625

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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
Namespaces1
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%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin