10% kiss-twitter-wrapper

Code Review | KISS Twitter Wrapper

WordPress plugin KISS Twitter Wrapper scored10%from 54 tests.

About plugin

  • Plugin page: kiss-twitter-wrapper
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 19, 2013
  • Latest release: Mar 19, 2013
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: iainjames88 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /689 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/kiss-twitter-wrapper/kiss-twitter-wrapper.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; KISS_Twitter_Wrapper has a deprecated constructor

Server metrics [RAM: ▼1.94MB] [CPU: ▼66.25ms] Passed 4 tests

This is a short check of server-side resources used by KISS Twitter Wrapper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.415.42 ▼41.66
Dashboard /wp-admin2.08 ▼1.276.53 ▼69.64
Posts /wp-admin/edit.php2.08 ▼1.287.19 ▼51.81
Add New Post /wp-admin/post-new.php2.08 ▼3.816.96 ▼101.90
Media Library /wp-admin/upload.php2.08 ▼1.156.23 ▼31.91

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_kiss_twitter_wrapper
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

KISS Twitter Wrapper: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.121.71 ▼0.2644.28 ▼2.68
Dashboard /wp-admin2,206 ▲215.80 ▲0.91106.10 ▼31.8141.74 ▼10.73
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0241.69 ▼3.0033.82 ▼5.38
Add New Post /wp-admin/post-new.php1,514 ▼517.67 ▼5.47670.49 ▼17.2553.30 ▲7.81
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.01109.87 ▼12.1348.68 ▲2.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/kiss-twitter-wrapper/kiss-twitter-wrapper.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; KISS_Twitter_Wrapper has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_kiss_twitter_wrapper
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kiss-twitter-wrapper/kiss-twitter-wrapper.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Stable tag: No value
  • Plugin Name: Please specify the plugin name on the first line ( === kiss-twitter-wrapper === )
  • Screenshots: Add images for these screenshots: #1 (It only takes one line to start using the widget - just copy and paste the generate code from the Twitter widget configurator page and paste it in to the code field.), #2 (The Twitter Widgets Configurator page shows how easy it is to set up your timeline feed.)
You can take inspiration from this readme.txt

kiss-twitter-wrapper/kiss-twitter-wrapper.php 92% from 13 tests

This is the main PHP file of "KISS Twitter Wrapper" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172233

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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
2 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png38.19KB11.80KB▼ 69.09%
screenshot-2.png134.19KB47.19KB▼ 64.83%