78% twitter-list-sync

Code Review | Twitter List Sync

WordPress plugin Twitter List Sync scored78%from 54 tests.

About plugin

  • Plugin page: twitter-list-sync
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Apr 27, 2015
  • Latest release: Nov 12, 2017
  • Number of updates: 10
  • Update frequency: every 93.0 days
  • Top authors: glen_scott (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼10.41ms] Passed 4 tests

Server-side resources used by Twitter List Sync
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.91 ▼25.20
Dashboard /wp-admin3.42 ▲0.0848.06 ▼15.23
Posts /wp-admin/edit.php3.53 ▲0.1855.56 ▲11.49
Add New Post /wp-admin/post-new.php6.00 ▲0.1199.31 ▼1.88
Media Library /wp-admin/upload.php3.34 ▲0.1136.86 ▲0.66
Twitter List Sync /wp-admin/options-general.php?page=twitter-list-sync-setting-admin3.3132.44

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Twitter List Sync
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.28 ▲0.101.53 ▼0.8944.69 ▼16.35
Dashboard /wp-admin2,202 ▲255.59 ▼0.0796.38 ▲1.2942.86 ▼2.78
Posts /wp-admin/edit.php2,107 ▲72.08 ▲0.0640.81 ▲4.1235.00 ▼0.69
Add New Post /wp-admin/post-new.php1,529 ▲123.52 ▲0.49657.72 ▼1.8252.16 ▼6.84
Media Library /wp-admin/upload.php1,395 ▼84.23 ▲0.11100.62 ▼2.0642.58 ▼2.32
Twitter List Sync /wp-admin/options-general.php?page=twitter-list-sync-setting-admin8411.9922.1027.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • twitter_list_sync_option_name
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/twitter-list-sync/twitter-list-sync.php
    • > /wp-content/plugins/twitter-list-sync/vendor/j7mbo/twitter-api-php/index.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/twitter-list-sync/options.php:218

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === twitter-list-sync === )
Please take inspiration from this readme.txt

twitter-list-sync/twitter-list-sync.php Passed 13 tests

The main PHP file in "Twitter List Sync" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Keep a Twitter list up to date with users from your site.

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
There were no executable files found in this plugin883 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP11173288737
Markdown231081
JSON30065

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity20.25
▷ Minimum class complexity7.00
▷ Maximum class complexity39.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods3992.86%
▷ Protected methods00.00%
▷ Private methods37.14%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected