78% apply-with-linkedin-buttons

Code Review | Apply with LinkedIn buttons

WordPress plugin Apply with LinkedIn buttons scored 78% from 54 tests.

About plugin

  • Plugin page: apply-with-linked...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Nov 16, 2012
  • Latest release: Aug 13, 2016
  • Number of updates: 29
  • Update frequency: every 47.3 days
  • Top authors: ivobrett (55.17%)martijnh (48.28%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active / 7,012 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.08ms] Passed 4 tests

Server-side resources used by Apply with LinkedIn buttons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.74 ▼6.01
Dashboard /wp-admin3.31 ▲0.0147.09 ▼1.99
Posts /wp-admin/edit.php3.36 ▲0.0150.88 ▲1.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.83 ▼16.95
Media Library /wp-admin/upload.php3.24 ▲0.0137.17 ▲0.64

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
applywithlinkedin_divstyling
applywithlinkedin_apidebug
widget_recent-posts
db_upgraded
applywithlinkedin_apikey
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Apply with LinkedIn buttons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.181.62 ▼0.2743.59 ▼3.14
Dashboard /wp-admin2,207 ▲195.77 ▲0.9096.83 ▼9.0540.73 ▼1.77
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0340.43 ▼0.3135.14 ▼1.16
Add New Post /wp-admin/post-new.php1,517 ▼1117.57 ▼0.60689.42 ▲23.2758.90 ▲0.70
Media Library /wp-admin/upload.php1,392 ▲44.18 ▲0.0597.05 ▼15.7943.51 ▼4.63
Apply with LinkedIn /wp-admin/applywithlinkedin.php260.440.1014.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/apply-with-linkedin-buttons/applywithlinkedin.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/applywithlinkedin.php
    • > Network (severe)
    wp-admin/applywithlinkedin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Overview of the admin options page) image missing
You can take inspiration from this readme.txt

apply-with-linkedin-buttons/applywithlinkedin.php 92% from 13 tests

The entry point to "Apply with LinkedIn buttons" version 2.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("apply-with-linkedin-buttons.php" instead of "applywithlinkedin.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
Everything looks great! No dangerous files found in this plugin165 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21428165

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.45KB11.54KB▼ 52.78%