10% specific-tweets

Code Review | Specific Tweets

WordPress plugin Specific Tweets scored10%from 54 tests.

About plugin

  • Plugin page: specific-tweets
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2012
  • Latest release: Aug 3, 2012
  • Number of updates: 8
  • Update frequency: every 0.5 days
  • Top authors: Zachdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,785 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/specific-tweets/specifictweets.php+214
    Function create_function() is deprecated

Server metrics [RAM: ▼1.90MB] [CPU: ▼55.64ms] Passed 4 tests

This is a short check of server-side resources used by Specific Tweets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.57 ▼38.46
Dashboard /wp-admin2.11 ▼1.208.38 ▼43.59
Posts /wp-admin/edit.php2.11 ▼1.256.23 ▼45.46
Add New Post /wp-admin/post-new.php2.11 ▼3.787.09 ▼95.04
Media Library /wp-admin/upload.php2.11 ▼1.126.49 ▼32.31

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_specific_tweets
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Specific Tweets: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.55 ▼0.821.63 ▼0.3843.28 ▲2.37
Dashboard /wp-admin2,203 ▲155.83 ▲0.8897.98 ▼3.0941.37 ▼1.50
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0040.63 ▼0.0334.10 ▼0.93
Add New Post /wp-admin/post-new.php1,542 ▼018.63 ▲0.51609.41 ▼56.4271.44 ▲3.62
Media Library /wp-admin/upload.php1,391 ▼04.19 ▲0.0494.57 ▼10.5039.88 ▼13.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/specific-tweets/specifictweets.php+214
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_specific_tweets
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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× 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/specific-tweets/specifictweets.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === specific-tweets === )
  • Screenshots: These screenshots require images: #1 (Widget Options), #2 (Viewing the Widget)
You can look at the official readme.txt

specific-tweets/specifictweets.php 85% from 13 tests

"Specific Tweets" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("specific-tweets.php" instead of "specifictweets.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected142 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11458142

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.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

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
options.png25.56KB8.75KB▼ 65.75%
widget.png29.09KB8.50KB▼ 70.79%
screenshot-1.png35.18KB11.36KB▼ 67.70%
screenshot-2.png28.18KB8.51KB▼ 69.79%