10% ym-twitter-feed

Code Review | YM Twitter Feed

WordPress plugin YM Twitter Feed scored 10% from 54 tests.

About plugin

  • Plugin page: ym-twitter-feed
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.8.1
  • First release: Oct 6, 2014
  • Latest release: Oct 9, 2014
  • Number of updates: 10
  • Update frequency: every 0.4 days
  • Top authors: youngminds (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 1,822 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/ym-twitter-feed/ym-twitter-feed.php+148
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼185.63ms] Passed 4 tests

Analyzing server-side resources used by YM Twitter Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.986.22 ▼16.88
Dashboard /wp-admin1.76 ▼1.295.58 ▼39.64
Posts /wp-admin/edit.php1.76 ▼1.345.95 ▼38.05
Add New Post /wp-admin/post-new.php1.76 ▼3.674.53 ▼638.07
Media Library /wp-admin/upload.php1.76 ▼1.245.49 ▼26.77

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_ym_twitter_feed

Browser metrics Passed 4 tests

This is an overview of browser requirements for YM Twitter Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.23 ▲0.6412.65 ▲2.1754.66 ▲11.23
Dashboard /wp-admin2,970 ▲395.84 ▼0.10143.19 ▲1.29124.07 ▼1.53
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0067.67 ▲1.6290.01 ▼2.24
Add New Post /wp-admin/post-new.php1,672 ▲17218.82 ▲0.23373.85 ▼15.31103.18 ▼7.89
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.00144.04 ▼1.23118.71 ▲5.68

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
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/ym-twitter-feed/ym-twitter-feed.php+148
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_ym_twitter_feed

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ym-twitter-feed/ym-twitter-feed.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: twitter, live twitter post, twitter feed, feed, embed twitter post

ym-twitter-feed/ym-twitter-feed.php Passed 13 tests

The principal PHP file in "YM Twitter Feed" v. 1.0 is loaded by WordPress automatically on each request
35 characters long description:
Add Twitter Feed to your widget bar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin124 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11511124

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin