10% wp-linkpushing-buddy

Code Review | WP Linkpush Buddy

WordPress plugin WP Linkpush Buddy scored10%from 54 tests.

About plugin

  • Plugin page: wp-linkpushing-buddy
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 5, 2013
  • Latest release: Jul 6, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: eeikbon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /745 total downloads

Benchmarks

Plugin footprint 23% 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
    • > Deprecated in wp-content/plugins/wp-linkpushing-buddy/wp-linkpush-buddy.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; WPLinkpushBuddy has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.70ms] Passed 4 tests

An overview of server-side resources used by WP Linkpush Buddy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.99 ▼37.97
Dashboard /wp-admin2.11 ▼1.199.55 ▼41.38
Posts /wp-admin/edit.php2.11 ▼1.255.39 ▼39.13
Add New Post /wp-admin/post-new.php2.11 ▼3.786.37 ▼96.30
Media Library /wp-admin/upload.php2.11 ▼1.125.94 ▼25.55
WP Linkpush Buddy /wp-admin/options-general.php?page=WPLinkpushBuddy2.115.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables
wp_wplpbuddy
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
wplpbuddy_db_version

Browser metrics Passed 4 tests

An overview of browser requirements for WP Linkpush Buddy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.331.60 ▼0.2042.77 ▼4.02
Dashboard /wp-admin2,207 ▲186.00 ▲1.06102.38 ▼14.3138.41 ▲3.38
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0336.21 ▼4.4734.70 ▼2.31
Add New Post /wp-admin/post-new.php6,248 ▲4,73126.06 ▲8.26867.79 ▲257.8149.28 ▼4.55
Media Library /wp-admin/upload.php1,389 ▲44.20 ▼0.0495.57 ▼3.7344.21 ▼2.33
WP Linkpush Buddy /wp-admin/options-general.php?page=WPLinkpushBuddy7882.0322.7124.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-linkpushing-buddy/wp-linkpush-buddy.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; WPLinkpushBuddy has a deprecated constructor
  • Zombie tables were found after uninstall: 1 table
    • wp_wplpbuddy
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • wplpbuddy_db_version
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=WPLinkpushBuddy
    • > Deprecated in wp-content/plugins/wp-linkpushing-buddy/wp-linkpush-buddy.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; WPLinkpushBuddy has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=WPLinkpushBuddy
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=WPLinkpushBuddy
    • > Notice in wp-content/plugins/wp-linkpushing-buddy/wp-linkpush-admin-form.php+2
    Undefined index: wplpbuddy_hidden

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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-linkpushing-buddy/wp-linkpush-admin-form.php:28
    • > PHP Notice
      Undefined index: wplpbuddy_hidden in wp-content/plugins/wp-linkpushing-buddy/wp-linkpush-admin-form.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-linkpushing-buddy/wp-linkpush-buddy.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt might help

wp-linkpushing-buddy/wp-linkpush-buddy.php 85% from 13 tests

The main PHP file in "WP Linkpush Buddy" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 213 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-linkpushing-buddy.php" instead of "wp-linkpush-buddy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected289 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35143289

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity11.50
▷ Minimum class complexity3.00
▷ Maximum class complexity20.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants1593.75%
▷ Class constants16.25%
▷ Public constants1100.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 files were detected