90% flockler

Code Review | Flockler: Add Social Media Feeds to WordPress

WordPress plugin Flockler: Add Social Media Feeds to WordPress scored 90% from 54 tests.

About plugin

  • Plugin page: flockler
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2021
  • Latest release: Mar 22, 2023
  • Number of updates: 12
  • Update frequency: every 62.8 days
  • Top authors: flockler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 4,319 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Flockler: Add Social Media Feeds to WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.71 ▼5.24
Dashboard /wp-admin3.31 ▲0.0145.81 ▼4.51
Posts /wp-admin/edit.php3.36 ▲0.0147.35 ▼2.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.65 ▼14.01
Media Library /wp-admin/upload.php3.23 ▲0.0135.66 ▲3.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Flockler: Add Social Media Feeds to WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.44 ▲0.061.73 ▼0.1142.35 ▼1.78
Dashboard /wp-admin2,203 ▲155.84 ▲0.9597.95 ▼10.3438.40 ▼2.61
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0240.85 ▲2.2734.67 ▼1.84
Add New Post /wp-admin/post-new.php1,533 ▲1423.18 ▲0.21616.26 ▼39.3160.83 ▲3.65
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0195.78 ▼5.9342.97 ▲0.54

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

flockler/flockler.php Passed 13 tests

The main PHP file in "Flockler: Add Social Media Feeds to WordPress" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
140 characters long description:
Flockler helps marketers and website managers to gather and display social media feeds from Instagram, Facebook, Twitter, YouTube, and more.

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
There were no executable files found in this plugin43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101543

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin