78% tweet-master

Code Review | TechGasp Tweety Master

WordPress plugin TechGasp Tweety Master scored 78% from 54 tests.

About plugin

  • Plugin page: tweet-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Jun 2, 2013
  • Latest release: Mar 11, 2021
  • Number of updates: 53
  • Update frequency: every 53.6 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 17,315 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.02MB] [CPU: ▼4.18ms] Passed 4 tests

An overview of server-side resources used by TechGasp Tweety Master
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.95 ▼6.49
Dashboard /wp-admin3.32 ▲0.0244.04 ▼6.04
Posts /wp-admin/edit.php3.37 ▲0.0250.00 ▲2.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.66 ▼6.54
Media Library /wp-admin/upload.php3.24 ▲0.0237.75 ▲3.80
Add-ons /wp-admin/admin.php?page=tweet-master-admin-addons3.2828.52
Tweety Master /wp-admin/admin.php?page=tweet-master3.2531.83

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_tweet_master_widget_buttons
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for TechGasp Tweety Master
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9113.23 ▼1.521.80 ▲0.0441.01 ▼8.83
Dashboard /wp-admin2,235 ▲475.86 ▼0.04103.89 ▼13.1677.96 ▲30.49
Posts /wp-admin/edit.php2,121 ▲322.05 ▼0.0038.17 ▲0.9134.18 ▲2.62
Add New Post /wp-admin/post-new.php1,542 ▲822.75 ▼0.41748.44 ▲78.9060.80 ▲2.95
Media Library /wp-admin/upload.php1,414 ▲264.11 ▼0.11118.34 ▲18.5248.99 ▲3.40
Add-ons /wp-admin/admin.php?page=tweet-master-admin-addons1,0732.0225.1733.26
Tweety Master /wp-admin/admin.php?page=tweet-master1,7668.24238.3987.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_tweet_master_widget_buttons
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | 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
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/tweet-master/includes/tweet-master-admin-addons-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/tweet-master/includes/tweet-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tweet-master/tweet-master.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/tweet-master/includes/tweet-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tweet-master/includes/tweet-master-widget-buttons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/tweet-master/includes/tweet-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/tweet-master/includes/tweet-master-admin.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=tweet-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=tweet-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=tweet-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yX/r/aHGdUlnkmHl.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=tweet-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yX/r/aHGdUlnkmHl.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

tweet-master/tweet-master.php Passed 13 tests

The entry point to "TechGasp Tweety Master" version 5.1.4 is a PHP file that has certain tags in its header comment area
115 characters long description:
With TechGasp Tweety Master plugin you can display your latest tweets, favourite twitter lists and twitter buttons.

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
Good job! No executable or dangerous file extensions detected525 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP92663525

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
9 PNG files occupy 0.28MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-check-yes.png22.22KB7.59KB▼ 65.83%
images/techgasp-check-no.png21.14KB7.14KB▼ 66.23%
images/techgasp-admin-addons-support.png15.84KB14.85KB▼ 6.26%
images/techgasp-admin-addons-widgets.png17.08KB16.02KB▼ 6.22%
images/techgasp-admin-addons-updater.png14.03KB13.02KB▼ 7.21%