89% make-clickable-tweet

Code Review | Make Clickable Tweet

WordPress plugin Make Clickable Tweet scored89%from 54 tests.

About plugin

  • Plugin page: make-clickable-tweet
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.3.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2012
  • Latest release: Apr 4, 2012
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: clarklab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,189 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Make Clickable Tweet
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.77 ▲1.48
Dashboard /wp-admin3.31 ▲0.0052.71 ▼1.91
Posts /wp-admin/edit.php3.36 ▲0.0054.32 ▼4.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.32 ▼11.16
Media Library /wp-admin/upload.php3.24 ▲0.0042.14 ▲1.36

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Make Clickable Tweet: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.181.95 ▲0.3542.16 ▼3.39
Dashboard /wp-admin2,192 ▲185.62 ▲0.0886.17 ▼9.7839.89 ▼8.87
Posts /wp-admin/edit.php2,097 ▼62.01 ▲0.0039.71 ▼0.1635.32 ▼1.34
Add New Post /wp-admin/post-new.php1,536 ▲1023.03 ▼0.06693.03 ▼48.9457.02 ▼5.15
Media Library /wp-admin/upload.php1,391 ▼64.17 ▲0.02102.00 ▼6.6546.71 ▲2.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === make-clickable-tweet === )
Please take inspiration from this readme.txt

make-clickable-tweet/make_clickable_tweet.php 92% from 13 tests

The main PHP script in "Make Clickable Tweet" version 0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("make-clickable-tweet.php" instead of "make_clickable_tweet.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1177

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected