84% simple-linkedin-feeds

Code Review | Simple Linkedin Feeds

WordPress plugin Simple Linkedin Feeds scored 84% from 54 tests.

About plugin

  • Plugin page: simple-linkedin-f...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 4, 2017
  • Latest release: Jan 4, 2017
  • Number of updates: 2
  • Update frequency: every 5.5 days
  • Top authors: amybeagh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 3,278 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.40ms] Passed 4 tests

This is a short check of server-side resources used by Simple Linkedin Feeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.75 ▼4.17
Dashboard /wp-admin3.35 ▲0.0549.26 ▼4.74
Posts /wp-admin/edit.php3.40 ▲0.0545.54 ▼2.09
Add New Post /wp-admin/post-new.php5.93 ▲0.0595.15 ▼2.61
Media Library /wp-admin/upload.php3.27 ▲0.0534.18 ▲1.86
Simple Linkedin Feeds /wp-admin/options-general.php?page=simple-linkedin-feeds/simple-linkedin-feeds.php3.2429.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Linkedin Feeds
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲13714.21 ▼0.1964.96 ▲63.3141.61 ▼8.58
Dashboard /wp-admin2,212 ▲245.86 ▼0.0399.38 ▼9.5736.53 ▼11.77
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0735.40 ▼0.2634.83 ▼0.97
Add New Post /wp-admin/post-new.php1,542 ▲918.11 ▼5.09581.44 ▼134.4049.09 ▼10.86
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.0296.52 ▼17.0743.40 ▼6.25
Simple Linkedin Feeds /wp-admin/options-general.php?page=simple-linkedin-feeds/simple-linkedin-feeds.php8891.7224.5733.30

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-linkedin-feeds/simple-linkedin-feeds.php:193

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 Passed 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
6 plugin tags: social media linkedin, linkedin slider display, simple linkedin feeds, linkedin feeds, wordpress plugin...

simple-linkedin-feeds/simple-linkedin-feeds.php Passed 13 tests

Analyzing the main PHP file in "Simple Linkedin Feeds" version 1.0
86 characters long description:
Simple Linkedin Feeds - Quick, small and easy to display linkedin Feeds for wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin342 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP114328211
CSS110127
HTML1004

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/sldw_icon.png2.78KB1.58KB▼ 42.95%