84% link-share

Code Review | LinkShare

WordPress plugin LinkShare scored 84% from 54 tests.

About plugin

  • Plugin page: link-share
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Aug 29, 2017
  • Latest release: Sep 9, 2017
  • Number of updates: 10
  • Update frequency: every 1.2 days
  • Top authors: bestony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.27ms] Passed 4 tests

An overview of server-side resources used by LinkShare
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.70 ▼0.38
Dashboard /wp-admin3.33 ▲0.0345.70 ▼0.32
Posts /wp-admin/edit.php3.39 ▲0.0346.28 ▼5.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.89 ▼7.12
Media Library /wp-admin/upload.php3.25 ▲0.0334.44 ▲1.94
New /wp-admin/post-new.php?post_type=linkshare3.2942.25
All LinkShares /wp-admin/edit.php?post_type=linkshare3.3032.59

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by LinkShare
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲7313.23 ▼1.161.95 ▼0.1247.04 ▼1.02
Dashboard /wp-admin2,233 ▲485.90 ▲1.0196.89 ▼3.7039.82 ▲0.39
Posts /wp-admin/edit.php2,116 ▲271.98 ▼0.0139.82 ▼1.0237.03 ▲1.30
Add New Post /wp-admin/post-new.php1,556 ▲2823.46 ▲5.18583.58 ▼40.5243.15 ▼17.42
Media Library /wp-admin/upload.php1,418 ▲304.24 ▲0.0297.04 ▼3.4343.94 ▲0.20
New /wp-admin/post-new.php?post_type=linkshare1,5052.5554.2649.09
All LinkShares /wp-admin/edit.php?post_type=linkshare1,0891.9944.8640.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/link-share/Link-share.php:206

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: posttype, links, share

link-share/Link-share.php 85% from 13 tests

The primary PHP file in "LinkShare" version 0.0.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("link-share.php" instead of "Link-share.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin204 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12754137
PO File1222267

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
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
PNG images were not found in this plugin