10% proper-twitter-widget

Code Review | Proper Twitter Widget

WordPress plugin Proper Twitter Widget scored10%from 54 tests.

About plugin

  • Plugin page: proper-twitter-wi...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: May 21, 2013
  • Latest release: May 21, 2013
  • Number of updates: 10
  • Update frequency: every 1.0 days
  • Top authors: mihai-rotaru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /978 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/proper-twitter-widget/proper-twitter-widget.php+175
    Function create_function() is deprecated

Server metrics [RAM: ▼1.88MB] [CPU: ▼56.07ms] Passed 4 tests

This is a short check of server-side resources used by Proper Twitter Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.364.83 ▼38.87
Dashboard /wp-admin2.13 ▼1.186.27 ▼47.54
Posts /wp-admin/edit.php2.13 ▼1.236.71 ▼40.69
Add New Post /wp-admin/post-new.php2.13 ▼3.766.38 ▼97.19
Media Library /wp-admin/upload.php2.13 ▼1.105.44 ▼32.76

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_proper_twitter_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Proper Twitter Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.041.56 ▼0.0344.49 ▼4.75
Dashboard /wp-admin2,189 ▲155.64 ▼0.0281.44 ▼4.0539.91 ▲2.24
Posts /wp-admin/edit.php2,100 ▼32.02 ▼0.0139.60 ▲4.2236.46 ▼1.34
Add New Post /wp-admin/post-new.php1,535 ▲918.39 ▼4.84667.50 ▲6.2465.88 ▲16.67
Media Library /wp-admin/upload.php1,394 ▼34.22 ▼0.01102.33 ▲0.8844.77 ▼0.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/proper-twitter-widget/proper-twitter-widget.php+175
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_proper_twitter_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/proper-twitter-widget/proper-twitter-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: widget, twitter

proper-twitter-widget/proper-twitter-widget.php Passed 13 tests

This is the main PHP file of "Proper Twitter Widget" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
25 characters long description:
Displays a Twitter widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11847110

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity9.25
▷ Minimum method complexity1.00
▷ Maximum method complexity20.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin