10% social-networks-timelines

Code Review | Social Networks Timelines

WordPress plugin Social Networks Timelines scored10%from 54 tests.

About plugin

  • Plugin page: social-networks-t...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-5.6
  • WordPress version: 6.3.1
  • First release: Mar 2, 2016
  • Latest release: Jan 20, 2021
  • Number of updates: 22
  • Update frequency: every 81.2 days
  • Top authors: omaikyto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /989 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/social-networks-timelines/social-network-timelines.php+47
    Undefined variable: installed_ver

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.27ms] Passed 4 tests

Analyzing server-side resources used by Social Networks Timelines
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.49 ▼7.08
Dashboard /wp-admin3.35 ▲0.0050.91 ▼14.72
Posts /wp-admin/edit.php3.40 ▲0.0445.92 ▼0.73
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.16 ▼10.53
Media Library /wp-admin/upload.php3.27 ▲0.0435.35 ▲2.01

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: 1 new table, 8 new options
New tables
wp_social_networks
New WordPress options
widget_twitter_timeline_widget
can_compress_scripts
theysaidso_admin_options
sntl_db_version
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Social Networks Timelines
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲12714.02 ▼0.6229.55 ▲27.4740.30 ▼2.72
Dashboard /wp-admin2,218 ▲275.88 ▲1.00111.59 ▲0.8644.25 ▼0.11
Posts /wp-admin/edit.php2,101 ▲92.01 ▼0.0336.72 ▼0.8832.67 ▼2.41
Add New Post /wp-admin/post-new.php1,558 ▲4418.35 ▲0.80645.46 ▼40.6774.57 ▲21.27
Media Library /wp-admin/upload.php1,403 ▲154.17 ▼0.0296.90 ▼2.6244.32 ▼2.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_social_networks
  • The uninstall procedure has failed, leaving 8 options in the database
    • sntl_db_version
    • widget_recent-posts
    • can_compress_scripts
    • widget_twitter_timeline_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-networks-timelines/includes/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-networks-timelines/social-network-timelines.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: widget, social network, timeline, twitter

social-networks-timelines/social-network-timelines.php 92% from 13 tests

The main PHP script in "Social Networks Timelines" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("social-networks-timelines.php" instead of "social-network-timelines.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin344 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53622288
PO File16812442
JavaScript12014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin