84% qr-twitter-widget

Code Review | QR Twitter Widget

WordPress plugin QR Twitter Widget scored84%from 54 tests.

About plugin

  • Plugin page: qr-twitter-widget
  • Plugin version: 0.2.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Dec 31, 2015
  • Latest release: Jul 23, 2021
  • Number of updates: 24
  • Update frequency: every 84.6 days
  • Top authors: QROkes (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

800+ active /8,006 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by QR Twitter Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.45 ▼2.51
Dashboard /wp-admin3.32 ▲0.0251.34 ▲5.42
Posts /wp-admin/edit.php3.37 ▲0.0150.15 ▲0.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.97 ▼25.10
Media Library /wp-admin/upload.php3.24 ▲0.0136.63 ▼2.47

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_qrokes-twitterwidget
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by QR Twitter Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.121.65 ▼0.3342.55 ▼2.52
Dashboard /wp-admin2,195 ▲155.62 ▼0.0587.47 ▼2.1837.01 ▼7.36
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0234.84 ▼1.3133.61 ▼0.60
Add New Post /wp-admin/post-new.php1,528 ▼022.99 ▲0.02680.57 ▲24.7052.15 ▼5.84
Media Library /wp-admin/upload.php1,397 ▼64.19 ▼0.08109.64 ▲11.6247.95 ▲5.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_qrokes-twitterwidget
    • 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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/qr-twitter-widget/lib/qr-twitter-widget-twapi.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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: widget, shortcode, tweet, twitter, timeline

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

"QR Twitter Widget" version 0.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
53 characters long description:
Display an official Twitter Embedded Timeline 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
Everything looks great! No dangerous files found in this plugin232 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26380232

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity6.33
▷ Minimum class complexity4.00
▷ Maximum class complexity9.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin