78% junior-shopable-social-feed

Code Review | Junior Shopable Social Feed

WordPress plugin Junior Shopable Social Feed scored78%from 54 tests.

About plugin

  • Plugin page: junior-shopable-s...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 5, 2020
  • Latest release: May 7, 2020
  • Number of updates: 8
  • Update frequency: every 9.7 days
  • Top authors: juniorlondon (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /467 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.40ms] Passed 4 tests

An overview of server-side resources used by Junior Shopable Social Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.44 ▲1.40
Dashboard /wp-admin3.32 ▲0.0254.22 ▲2.78
Posts /wp-admin/edit.php3.37 ▲0.0148.39 ▲1.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.90 ▼15.01
Media Library /wp-admin/upload.php3.24 ▲0.0141.07 ▲3.18
JR Social Feed /wp-admin/options-general.php?page=jrigf3.2131.59

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
jrigf_feed_title
can_compress_scripts
jrigf_feed_page
jrigf_feed_color
jrigf_feed_count
jrigf_feed_selector
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Junior Shopable Social Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲17514.58 ▼0.0542.65 ▲40.7745.42 ▲9.31
Dashboard /wp-admin2,229 ▲415.01 ▼0.89113.05 ▲1.2744.31 ▲2.13
Posts /wp-admin/edit.php2,117 ▲252.32 ▲0.2940.00 ▼4.6333.27 ▼1.00
Add New Post /wp-admin/post-new.php1,531 ▲1723.30 ▲5.76663.32 ▼20.4337.59 ▼19.22
Media Library /wp-admin/upload.php1,408 ▲204.40 ▲0.13112.98 ▲3.6547.54 ▲0.73
JR Social Feed /wp-admin/options-general.php?page=jrigf1,0822.5940.8842.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 12 options in the database
    • jrigf_feed_color
    • jrigf_feed_page
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • jrigf_feed_selector
    • jrigf_feed_count
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=jrigf
    • > Notice in wp-content/plugins/junior-shopable-social-feed/includes/jrigf-admin.php+120
    Undefined variable: post

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junior-shopable-social-feed/includes/jrigf-admin.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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 require attention:
  • Screenshots: Screenshot #1 (The short code to print the list of users to the frontend) image not found
Please take inspiration from this readme.txt

junior-shopable-social-feed/junior-instagram-feed.php 85% from 13 tests

Analyzing the main PHP file in "Junior Shopable Social Feed" version 1.0.4
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("junior-shopable-social-feed.php" instead of "junior-instagram-feed.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected376 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP31564207
JavaScript22063110
CSS11659

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin