83% twitter-expander

Code Review | Twitter Expander

WordPress plugin Twitter Expander scored83%from 54 tests.

About plugin

  • Plugin page: twitter-expander
  • Plugin version: 3.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Jun 9, 2011
  • Latest release: Mar 25, 2021
  • Number of updates: 27
  • Update frequency: every 132.5 days
  • Top authors: Annubis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,648 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.89ms] Passed 4 tests

Server-side resources used by Twitter Expander
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.61 ▼3.26
Dashboard /wp-admin3.31 ▲0.0153.42 ▼3.73
Posts /wp-admin/edit.php3.36 ▲0.0050.03 ▼2.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.96 ▼20.22
Media Library /wp-admin/upload.php3.23 ▲0.0038.57 ▼8.36

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Twitter Expander
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.61 ▼0.031.78 ▼0.3444.55 ▲0.21
Dashboard /wp-admin2,206 ▲185.83 ▲0.9398.74 ▼7.1441.04 ▼4.47
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0040.46 ▲2.5533.61 ▼1.18
Add New Post /wp-admin/post-new.php1,537 ▲1823.50 ▲0.32674.95 ▲28.4663.42 ▲7.55
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.03104.15 ▼15.3543.93 ▼5.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/twitter-expander/twitter_expander.php:22

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === twitter-expander === )
You can look at the official readme.txt

twitter-expander/twitter_expander.php 85% from 13 tests

The principal PHP file in "Twitter Expander" v. 3.3.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.5")
  • Main file name: The principal plugin file should be the same as the plugin slug ("twitter-expander.php" instead of "twitter_expander.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin