84% feed-the-grid

Code Review | Feed The Grid

WordPress plugin Feed The Grid scored 84% from 54 tests.

About plugin

  • Plugin page: feed-the-grid
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 5.9.2
  • First release: Sep 26, 2016
  • Latest release: Jun 5, 2017
  • Number of updates: 6
  • Update frequency: every 42.5 days
  • Top authors: Cohhe (66.67%)sprincis (50%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,304 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
Installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼298.84ms] Passed 4 tests

Analyzing server-side resources used by Feed The Grid
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.3657.98 ▲9.66
Dashboard /wp-admin3.71 ▲0.3033.92 ▲0.28
Posts /wp-admin/edit.php3.94 ▲0.3038.94 ▲2.28
Add New Post /wp-admin/post-new.php7.18 ▲0.2196.42 ▼1,192.23
Media Library /wp-admin/upload.php3.59 ▲0.2924.76 ▼5.68
Streams /wp-admin/admin.php?page=feed-the-grid3.5823.96
Settings /wp-admin/admin.php?page=feed-the-grid-settings3.5824.46

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 86 new files
Database: 1 new table, no new options
New tables
wp_feed_the_grid_streams

Browser metrics Passed 4 tests

Feed The Grid: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,952 ▲19816.83 ▲1.0812.65 ▲6.512.27 ▼0.37
Dashboard /wp-admin2,921 ▲606.07 ▼0.07114.36 ▼18.39155.63 ▼6.01
Posts /wp-admin/edit.php2,716 ▲223.24 ▼0.0063.93 ▲1.44141.32 ▲3.73
Add New Post /wp-admin/post-new.php1,680 ▼3116.37 ▼4.25390.96 ▼99.11157.56 ▼0.02
Media Library /wp-admin/upload.php1,726 ▲285.45 ▼0.06139.83 ▲1.76183.57 ▼5.03
Streams /wp-admin/admin.php?page=feed-the-grid1,2003.1858.3779.11
Settings /wp-admin/admin.php?page=feed-the-grid-settings1,2423.1657.2079.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_feed_the_grid_streams

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/feed-the-grid/admin/partials/ftg-functionality-admin-display.php
    • > /wp-content/plugins/feed-the-grid/public/partials/ftg-functionality-public-display.php

User-side errors Passed 1 test

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

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 your attention:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

feed-the-grid/feed-the-grid.php Passed 13 tests

Analyzing the main PHP file in "Feed The Grid" version 1.2
93 characters long description:
Feed The Grid plugin allows you to show Instagram, Twitter and Youtube feeds on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected29,990 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
SVG529017,457
CSS51,3561498,072
PHP154348772,421
JavaScript52431531,679
JSON100190
PO File176163171

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity5.74
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes210.53%
▷ Concrete classes1789.47%
▷ Final classes00.00%
Methods100
▷ Static methods1212.00%
▷ Public methods8484.00%
▷ Protected methods22.00%
▷ Private methods1414.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo-square.png27.65KB5.01KB▼ 81.87%