10% wp-social-integrator

Code Review | WP social integrator - WordPress social integrator

WordPress plugin WP social integrator - WordPress social integrator scored10%from 54 tests.

About plugin

  • Plugin page: wp-social-integrator
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0+
  • WordPress version: 6.3.1
  • First release: Jan 4, 2014
  • Latest release: Feb 18, 2014
  • Number of updates: 3
  • Update frequency: every 15.0 days
  • Top authors: olegicnin2007 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,142 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/wp-social-integrator/wp-social-integrator.php+12
    Only variables should be passed by reference

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.10ms] Passed 4 tests

An overview of server-side resources used by WP social integrator - WordPress social integrator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.33 ▼37.16
Dashboard /wp-admin2.05 ▼1.265.99 ▼35.67
Posts /wp-admin/edit.php2.05 ▼1.315.55 ▼40.88
Add New Post /wp-admin/post-new.php2.05 ▼3.845.51 ▼86.67
Media Library /wp-admin/upload.php2.05 ▼1.185.82 ▼29.88
WP social integrator /wp-admin/options-general.php?page=wpss2.055.25

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP social integrator - WordPress social integrator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲20114.42 ▼0.2334.23 ▲32.5045.41 ▲0.96
Dashboard /wp-admin2,223 ▲384.92 ▼0.93108.06 ▲6.2640.92 ▼0.85
Posts /wp-admin/edit.php2,109 ▲382.07 ▼0.0840.51 ▲4.5635.70 ▲0.59
Add New Post /wp-admin/post-new.php1,533 ▲1923.28 ▲5.70670.49 ▼17.3655.87 ▼0.61
Media Library /wp-admin/upload.php1,399 ▲144.25 ▲0.0095.88 ▼15.5143.68 ▼4.61
WP social integrator /wp-admin/options-general.php?page=wpss1,0513.4271.1035.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wp-social-integrator/wp-social-integrator.php+12
    Only variables should be passed by reference
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wpss
    • > Notice in wp-content/plugins/wp-social-integrator/wp-social-integrator.php+12
    Only variables should be passed by reference
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wpss
    • > Notice in wp-content/plugins/wp-social-integrator/tpls/settings.php+37
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-social-integrator/libs/class.plugin.php on line 8
    • > PHP Notice
      Only variables should be passed by reference in wp-content/plugins/wp-social-integrator/wp-social-integrator.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-social-integrator/libs/class.plugin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-social-integrator/tpls/settings.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wpss
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=wpss 189:22 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (social integrator window panel), #2 (Facebook window), #3 (settings window)
You can take inspiration from this readme.txt

wp-social-integrator/wp-social-integrator.php Passed 13 tests

The main PHP file in "WP social integrator - WordPress social integrator" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
27 characters long description:
WordPress social integrator

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin424 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32410282
CSS170142

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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.34MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
1.png127.91KB54.10KB▼ 57.71%
images/facebook.png1.45KB1.22KB▼ 15.94%
images/google.png1.79KB1.71KB▼ 4.54%
images/vk.png2.11KB1.57KB▼ 25.61%
2.png161.73KB48.34KB▼ 70.11%