84% linkedin-badge-by-pixelpillow

Code Review | Linkedin Badge by Pixelpillow

WordPress plugin Linkedin Badge by Pixelpillow scored84%from 54 tests.

About plugin

  • Plugin page: linkedin-badge-by...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Aug 13, 2013
  • Latest release: Oct 1, 2013
  • Number of updates: 8
  • Update frequency: every 6.1 days
  • Top authors: pixelpillow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,472 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Linkedin Badge by Pixelpillow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.94 ▼4.47
Dashboard /wp-admin3.31 ▲0.0150.26 ▲0.88
Posts /wp-admin/edit.php3.36 ▲0.0047.85 ▼1.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.32 ▼17.58
Media Library /wp-admin/upload.php3.23 ▲0.0037.21 ▲1.00

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Linkedin Badge by Pixelpillow: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲6413.93 ▼0.7964.29 ▲62.4948.66 ▲7.75
Dashboard /wp-admin2,195 ▲155.56 ▼0.0399.61 ▲8.8142.32 ▲1.97
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0832.97 ▼6.5734.85 ▼1.43
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▼0.14657.85 ▲35.5754.62 ▲6.49
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.08106.62 ▼3.4147.88 ▲3.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/linkedin-badge-by-pixelpillow/pixelpillow-linkedin-badge.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === linkedin-badge-by-pixelpillow === )
You can take inspiration from this readme.txt

linkedin-badge-by-pixelpillow/pixelpillow-linkedin-badge.php 92% from 13 tests

"Linkedin Badge by Pixelpillow" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("linkedin-badge-by-pixelpillow.php" instead of "pixelpillow-linkedin-badge.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161122

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin