10% mytwitterfeed

Code Review | MyTwitterFeed

WordPress plugin MyTwitterFeed scored10%from 54 tests.

About plugin

  • Plugin page: mytwitterfeed
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 14, 2012
  • Latest release: Nov 14, 2012
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wmappz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,648 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/mytwitterfeed/mytwitterfeed.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; MyTwitterFeed has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼52.97ms] Passed 4 tests

An overview of server-side resources used by MyTwitterFeed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.44 ▼37.48
Dashboard /wp-admin2.09 ▼1.215.88 ▼42.35
Posts /wp-admin/edit.php2.09 ▼1.265.46 ▼42.35
Add New Post /wp-admin/post-new.php2.09 ▼3.795.09 ▼89.69
Media Library /wp-admin/upload.php2.09 ▼1.145.33 ▼32.15

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_mytwitterfeed-widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for MyTwitterFeed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.48 ▲0.171.86 ▼0.2644.46 ▼2.49
Dashboard /wp-admin2,206 ▲184.85 ▼0.19110.83 ▼3.1441.50 ▼5.46
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0338.73 ▲1.2034.76 ▼0.34
Add New Post /wp-admin/post-new.php1,406 ▼12717.69 ▼5.28589.35 ▼97.6745.33 ▼20.72
Media Library /wp-admin/upload.php1,382 ▼64.22 ▼0.0398.01 ▼7.8942.29 ▼3.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/mytwitterfeed/mytwitterfeed.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; MyTwitterFeed has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_mytwitterfeed-widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mytwitterfeed/mytwitterfeed.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === mytwitterfeed === )
The official readme.txt might help

mytwitterfeed/mytwitterfeed.php Passed 13 tests

The main PHP file in "MyTwitterFeed" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
Show your latest tweets from your twitter account

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13620100

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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