83% kiwi-tweet-this

Code Review | Kiwi Tweet this!

WordPress plugin Kiwi Tweet this! scored83%from 54 tests.

About plugin

  • Plugin page: kiwi-tweet-this
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9
  • WordPress version: 6.3.1
  • First release: Dec 23, 2013
  • Latest release: May 24, 2016
  • Number of updates: 9
  • Update frequency: every 98.4 days
  • Top authors: ysdbjorn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,728 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Kiwi Tweet this!
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.99 ▼11.63
Dashboard /wp-admin3.31 ▲0.0050.95 ▼5.56
Posts /wp-admin/edit.php3.36 ▲0.0052.26 ▼5.56
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.57 ▼13.25
Media Library /wp-admin/upload.php3.23 ▲0.0035.38 ▼5.88

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Kiwi Tweet this!
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11514.40 ▲0.1827.90 ▲26.0543.24 ▼0.78
Dashboard /wp-admin2,203 ▲185.80 ▲0.74103.25 ▼40.2240.03 ▼7.02
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0339.73 ▼2.6436.04 ▲1.39
Add New Post /wp-admin/post-new.php1,544 ▲2518.54 ▼4.53636.52 ▲10.4552.74 ▲4.60
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.03102.28 ▼12.4744.56 ▼0.71

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kiwi-tweet-this/kiwi_tweet_this.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
  • Plugin Name: Please specify the plugin name on the first line ( === kiwi-tweet-this === )
The official readme.txt is a good inspiration

kiwi-tweet-this/kiwi_tweet_this.php 92% from 13 tests

The principal PHP file in "Kiwi Tweet this!" v. 2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("kiwi-tweet-this.php" instead of "kiwi_tweet_this.php")

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
Success! There were no dangerous files found in this plugin26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18926

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin