84% st-social-feed

Code Review | ST social feed

WordPress plugin ST social feed scored84%from 54 tests.

About plugin

  • Plugin page: st-social-feed
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Sep 22, 2018
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: tsumitinfo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by ST social feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.24 ▼12.69
Dashboard /wp-admin3.32 ▲0.0153.35 ▲3.83
Posts /wp-admin/edit.php3.37 ▲0.0151.83 ▲0.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.78 ▼24.14
Media Library /wp-admin/upload.php3.24 ▲0.0136.07 ▲1.78

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for ST social feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲12713.43 ▼1.1211.08 ▲9.3742.22 ▼2.71
Dashboard /wp-admin2,211 ▲315.61 ▼0.0796.79 ▲0.9043.23 ▲3.86
Posts /wp-admin/edit.php2,113 ▲132.01 ▼0.0333.73 ▼4.7836.28 ▼0.60
Add New Post /wp-admin/post-new.php1,539 ▲1322.95 ▼0.78686.01 ▼19.7753.56 ▼1.78
Media Library /wp-admin/upload.php1,416 ▲194.16 ▼0.01100.68 ▼4.8443.39 ▼0.61

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Almost there! Just fix the following items
  • 2× 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/st-social-feed/st-social-feed-post.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/st-social-feed/short-code/st-social-feed-short-code.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
3 plugin tags: custom-social feed, post-social feed, social-feed

st-social-feed/st-social-feed.php Passed 13 tests

"ST social feed" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
Add Social Feed on your site by using [st_social_feed] shortcode for more detail please see detail page.

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
Everything looks great! No dangerous files found in this plugin104 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3293480
JavaScript261015
CSS2489

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin