89% teg-twitter-api

Code Review | Twitter API Master - Twitter Widgets For WordPress

WordPress plugin Twitter API Master - Twitter Widgets For WordPress scored89%from 54 tests.

About plugin

  • Plugin page: teg-twitter-api
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.2
  • WordPress version: 6.3.1
  • First release: Jul 4, 2017
  • Latest release: Jan 26, 2018
  • Number of updates: 24
  • Update frequency: every 10.3 days
  • Top authors: themeegg (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,761 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.94ms] Passed 4 tests

Analyzing server-side resources used by Twitter API Master - Twitter Widgets For WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1245.17 ▼0.50
Dashboard /wp-admin3.46 ▲0.1557.24 ▼4.82
Posts /wp-admin/edit.php3.51 ▲0.1557.35 ▲1.99
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.13 ▼12.41
Media Library /wp-admin/upload.php3.32 ▲0.0944.00 ▲3.98

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_teg_twitter_api_widget_twitter_feeds
teg_ta_twitter_feed_shortcode_layout
widget_recent-comments
teg_twitter_api_post_on_twitter
widget_teg_twitter_api_widget_twitter_trends
theysaidso_admin_options
widget_teg_twitter_api_widget_twitter_timeline
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Twitter API Master - Twitter Widgets For WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17713.99 ▼0.415.30 ▲3.5441.46 ▼1.64
Dashboard /wp-admin2,233 ▲334.86 ▼0.98117.07 ▲12.5945.54 ▲5.41
Posts /wp-admin/edit.php2,109 ▲92.00 ▲0.0139.48 ▼0.1537.81 ▲0.57
Add New Post /wp-admin/post-new.php6,265 ▲4,73226.30 ▲3.00890.11 ▲205.1359.71 ▼5.62
Media Library /wp-admin/upload.php1,409 ▲124.20 ▼0.04106.01 ▼10.3242.52 ▼5.74

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 11 options in the database
    • widget_teg_twitter_api_widget_twitter_trends
    • teg_ta_twitter_feed_shortcode_layout
    • widget_theysaidso_widget
    • widget_teg_twitter_api_widget_twitter_feeds
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_teg_twitter_api_widget_twitter_timeline
    • ...

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === teg-twitter-api === )
You can look at the official readme.txt

teg-twitter-api/teg-twitter-api.php 92% from 13 tests

This is the main PHP file of "Twitter API Master - Twitter Widgets For WordPress" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "3.0.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin13,230 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript62,3936139,185
PHP481,2311,6743,228
Sass2820810
SVG4004
CSS3003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes31
▷ Abstract classes26.45%
▷ Concrete classes2993.55%
▷ Final classes13.45%
Methods221
▷ Static methods5826.24%
▷ Public methods18985.52%
▷ Protected methods10.45%
▷ Private methods3114.03%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/twitter-logo-100x100.png3.53KB2.04KB▼ 42.32%
assets/img/twitter-logo.png44.12KB16.72KB▼ 62.10%