93% link-twitter-users

Code Review | Link twitter users

WordPress plugin Link twitter users scored 93% from 53 tests.

About plugin

  • Plugin page: link-twitter-users
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-3.6
  • WordPress version: 5.8.1
  • First release: Jun 7, 2013
  • Latest release: Apr 18, 2017
  • Number of updates: 12
  • Update frequency: every 117.6 days
  • Top authors: boluda (83.33%)unitepress (25%)

Code review

53 tests

User reviews

2 reviews

Install metrics

10+ active / 1,066 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Link twitter users
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1242.26 ▲21.36
Dashboard /wp-admin3.06 ▲0.0144.94 ▼2.44
Posts /wp-admin/edit.php3.11 ▲0.0043.13 ▲0.71
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.87 ▼1,176.33
Media Library /wp-admin/upload.php3.00 ▼0.0130.86 ▼5.85

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Link twitter users
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,628 ▲2216.21 ▲0.8011.84 ▲3.6748.78 ▲4.93
Dashboard /wp-admin2,934 ▲815.91 ▲0.06136.02 ▲5.2593.42 ▼9.31
Posts /wp-admin/edit.php2,706 ▲32.68 ▼0.0160.82 ▼1.3086.62 ▼0.34
Add New Post /wp-admin/post-new.php1,653 ▼19818.74 ▲1.00362.44 ▲9.38110.57 ▲5.09
Media Library /wp-admin/upload.php1,775 ▼05.00 ▼0.00150.95 ▼2.51111.72 ▼4.09

Uninstaller [IO: ▲0.00MB] [DB: ▲1.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 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)
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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/link-twitter-users/link-twitter-users.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === link-twitter-users === )
Please take inspiration from this readme.txt

link-twitter-users/link-twitter-users.php 85% from 13 tests

The entry point to "Link twitter users" version 1.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and 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
  • Domain Path: The domain path is invalid: folder "/lang" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11247

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for 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 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin