83% responsive-twitter-feeds

Code Review | Responsive Twitter Feeds

WordPress plugin Responsive Twitter Feeds scored83%from 54 tests.

About plugin

  • Plugin page: responsive-twitte...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.2.2
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: Dec 8, 2015
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: ajith2011 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,036 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.56ms] Passed 4 tests

Analyzing server-side resources used by Responsive Twitter Feeds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.25 ▲2.81
Dashboard /wp-admin3.40 ▲0.0546.92 ▼18.77
Posts /wp-admin/edit.php3.51 ▲0.1550.25 ▲0.75
Add New Post /wp-admin/post-new.php5.98 ▲0.09102.85 ▲7.67
Media Library /wp-admin/upload.php3.32 ▲0.0939.20 ▲0.98
Twitter Settings /wp-admin/options-general.php?page=muts_settings-admin3.2937.16

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Twitter Feeds
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.36 ▲0.011.63 ▼0.0838.79 ▼4.81
Dashboard /wp-admin2,199 ▲255.61 ▲0.0591.81 ▼7.5337.61 ▼5.20
Posts /wp-admin/edit.php2,101 ▲11.97 ▼0.0039.84 ▲3.1136.12 ▼0.28
Add New Post /wp-admin/post-new.php1,529 ▲323.21 ▲0.25674.57 ▼17.8854.64 ▼1.48
Media Library /wp-admin/upload.php1,401 ▲14.18 ▼0.0399.49 ▼6.5143.23 ▼3.79
Twitter Settings /wp-admin/options-general.php?page=muts_settings-admin8491.9927.0628.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-twitter-feeds/muaw-twitter-feeds.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
The official readme.txt might help

responsive-twitter-feeds/muaw-twitter-feeds.php 85% from 13 tests

The principal PHP file in "Responsive Twitter Feeds" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("responsive-twitter-feeds.php" instead of "muaw-twitter-feeds.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected539 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP470181481
CSS10158

PHP code Passed 2 tests

An short overview of 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.31
Average class complexity16.33
▷ Minimum class complexity6.00
▷ Maximum class complexity30.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.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
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png46.03KB19.20KB▼ 58.28%
twbird.png2.82KB1.92KB▼ 31.94%
screenshot-2.png38.07KB17.29KB▼ 54.58%