10% wpp-link-social

Code Review | Wpp Link Social

WordPress plugin Wpp Link Social scored10%from 54 tests.

About plugin

  • Plugin page: wpp-link-social
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 11, 2015
  • Latest release: Jul 11, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: piyushkapoor786 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,035 total downloads

Benchmarks

Plugin footprint 5% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

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

Server-side resources used by Wpp Link Social
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.20 ▲0.16
Dashboard /wp-admin3.31 ▼0.0351.07 ▼16.10
Posts /wp-admin/edit.php3.36 ▲0.0152.51 ▲4.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.14 ▼17.90
Media Library /wp-admin/upload.php3.24 ▲0.0140.21 ▲4.76

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wpp_link_social
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Wpp Link Social
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲8813.51 ▼1.101.95 ▲0.3744.58 ▲4.98
Dashboard /wp-admin2,234 ▲314.82 ▼1.05111.93 ▲1.3044.31 ▼1.34
Posts /wp-admin/edit.php2,116 ▲162.01 ▼0.0840.55 ▲4.2836.81 ▲1.31
Add New Post /wp-admin/post-new.php1,558 ▲1323.22 ▼0.00669.30 ▲14.4055.80 ▲3.38
Media Library /wp-admin/upload.php1,416 ▲194.22 ▲0.06104.90 ▲4.1647.34 ▼0.15

Uninstaller [IO: ▲0.02MB] [DB: ▲0.00MB] 0% 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
  • This plugin did not uninstall without warnings or errors
    • > Error in wp-content/plugins/wpp-link-social/aiu.php+22
    Uncaught Error: Call to undefined function prepare() in wp-content/plugins/wpp-link-social/aiu.php:22
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): wppwls_uninstall()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(1269): do_action()
    #4 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • Uninstaller has failed for this plugin, leaving 12 files (0.02MB) in the plugin directory
    • (new file) img/twitter.png
    • (new file) plugin-admin.php
    • (new file) plugin-menu.php
    • (new file) index.php
    • (new file) aiu.php
    • (new file) img/gplus.png
    • (new file) plugin-process.php
    • (new file) img/email.png
    • (new file) plugin-show.php
    • (new file) img/facebook.png
    • ...
  • Zombie tables were found after uninstall: 1 table
    • wpp_link_social
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wpp-link-social/index.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/aiu.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpp-link-social/wpp-link-social.php:35
    • > PHP Warning
      Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/plugin-show.php on line 2
    • > PHP Warning
      Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/plugin-process.php on line 2
    • > PHP Warning
      Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/plugin-menu.php on line 2
    • > PHP Warning
      Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/plugin-admin.php on line 2
    • > PHP Warning
      Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/plugin-admin.php on line 2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (24 tag instead of maximum 10)
The official readme.txt might help

wpp-link-social/wpp-link-social.php Passed 13 tests

"Wpp Link Social" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
A plugin that allows to create social icons with link in the webpage of your website

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 detected242 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP75023242

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/email.png4.08KB1.38KB▼ 66.20%
img/twitter.png3.61KB1.07KB▼ 70.42%
img/facebook.png3.43KB0.87KB▼ 74.67%
img/gplus.png4.02KB1.34KB▼ 66.64%