84% lh-posse

Code Review | LH Posse

WordPress plugin LH Posse scored84%from 54 tests.

About plugin

  • Plugin page: lh-posse
  • Plugin version: 1.03
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Dec 18, 2013
  • Latest release: Dec 16, 2017
  • Number of updates: 20
  • Update frequency: every 73.0 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,304 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by LH Posse
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.13 ▼7.82
Dashboard /wp-admin3.32 ▲0.0147.05 ▼4.83
Posts /wp-admin/edit.php3.37 ▲0.0150.66 ▼2.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.99 ▼18.67
Media Library /wp-admin/upload.php3.24 ▲0.0135.18 ▼4.24

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

LH Posse: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.331.93 ▲0.0044.83 ▲1.36
Dashboard /wp-admin2,198 ▲305.57 ▲0.0386.99 ▼2.1143.41 ▼3.13
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0234.68 ▼3.5536.44 ▲1.73
Add New Post /wp-admin/post-new.php1,531 ▲523.28 ▲0.15636.77 ▼35.0850.45 ▲3.36
Media Library /wp-admin/upload.php1,394 ▼34.16 ▼0.0996.35 ▼19.9944.45 ▼1.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/lh-posse/templates/fb-templates/fb-gallery.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title_rss() in wp-content/plugins/lh-posse/templates/fb-templates/fb-link.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title_rss() in wp-content/plugins/lh-posse/templates/fb-templates/fb-quote.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/lh-posse/templates/feed-lh-posse-tw.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/lh-posse/templates/feed-lh-posse-attach.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title_rss() in wp-content/plugins/lh-posse/templates/fb-templates/fb-standard.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lh-posse/includes/hashtags.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lh-posse/includes/rel-syndication.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title_rss() in wp-content/plugins/lh-posse/templates/fb-templates/fb-status.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/lh-posse/templates/feed-lh-posse-fb.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: feeds, ifttt, posse, feed, facebook...

lh-posse/lh-posse.php Passed 13 tests

The main file in "LH Posse" v. 1.03 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
Adds several feeds to Wordpress customised based on post format for posting to facebook and twitter via IFTTT

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin507 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1428887507

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods545.45%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin