84% podamibe-twitter-feed-widget

Code Review | Podamibe Twitter Feed Widget

WordPress plugin Podamibe Twitter Feed Widget scored84%from 54 tests.

About plugin

  • Plugin page: podamibe-twitter-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2016
  • Latest release: Dec 28, 2017
  • Number of updates: 8
  • Update frequency: every 57.6 days
  • Top authors: podamibe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,845 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Podamibe Twitter Feed Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0236.22 ▼6.31
Dashboard /wp-admin3.32 ▲0.0146.30 ▼1.23
Posts /wp-admin/edit.php3.37 ▲0.0148.61 ▼1.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.24 ▲0.17
Media Library /wp-admin/upload.php3.24 ▲0.0130.81 ▼1.64

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_podamibe_twitter_feed
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Podamibe Twitter Feed Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲15014.19 ▼0.5633.38 ▲31.7043.60 ▼9.83
Dashboard /wp-admin2,222 ▲345.13 ▲0.23113.36 ▼0.1243.99 ▼2.24
Posts /wp-admin/edit.php2,092 ▲32.47 ▲0.4341.50 ▲4.6036.07 ▲1.19
Add New Post /wp-admin/post-new.php1,541 ▲818.44 ▼4.65574.88 ▼100.6234.25 ▼14.64
Media Library /wp-admin/upload.php1,408 ▲174.42 ▲0.2088.37 ▼11.3140.88 ▼3.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_podamibe_twitter_feed
    • db_upgraded
    • widget_recent-posts

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
  • 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/podamibe-twitter-feed-widget/inc/podamibe-twitter-widget.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: twitter, twitter feed widget, social sharing, twitter feed, widget

podamibe-twitter-feed-widget/podamibe-twitter.php 85% from 13 tests

Analyzing the main PHP file in "Podamibe Twitter Feed Widget" version 1.0.3
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("podamibe-twitter-feed-widget.php" instead of "podamibe-twitter.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
No dangerous file extensions were detected888 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG100685
PHP26129182
CSS28714
JavaScript2107

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin