78% embed-twitter-timeline

Code Review | Embed Twitter Timeline

WordPress plugin Embed Twitter Timeline scored78%from 54 tests.

About plugin

  • Plugin page: embed-twitter-tim...
  • Plugin version: 1.0.0
  • PHP compatiblity: 6.8+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 3, 2021
  • Latest release: Apr 3, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: delower186 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /399 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.03MB] [CPU: ▼10.99ms] Passed 4 tests

A check of server-side resources used by Embed Twitter Timeline
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.57 ▼0.14
Dashboard /wp-admin3.34 ▼0.0045.52 ▼11.70
Posts /wp-admin/edit.php3.40 ▲0.0439.98 ▼6.87
Add New Post /wp-admin/post-new.php5.93 ▲0.0477.93 ▼25.25
Media Library /wp-admin/upload.php3.27 ▲0.0437.45 ▲4.16

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_embed-twitter-timeline
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Embed Twitter Timeline
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲12414.08 ▼0.2744.56 ▲42.9044.33 ▲4.86
Dashboard /wp-admin2,198 ▲215.65 ▼0.0285.32 ▼0.1642.42 ▼0.67
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0434.85 ▲0.3436.58 ▲1.96
Add New Post /wp-admin/post-new.php1,526 ▼223.15 ▲0.07668.30 ▼3.9450.18 ▼15.12
Media Library /wp-admin/upload.php1,400 ▼04.13 ▼0.0797.27 ▼9.4740.56 ▼7.41

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_embed-twitter-timeline
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/embed-twitter-timeline/embed-twitter-timeline.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/embed-twitter-timeline/classes/embed-twitter-timeline-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

embed-twitter-timeline/embed-twitter-timeline.php Passed 13 tests

The main PHP file in "Embed Twitter Timeline" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
121 characters long description:
Embed Twitter Timeline helps you easily embed and promote Twitter Profile by displaying timeline on your wordpres widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin113 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33482111
JavaScript1062

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin