84% fetch-tweets-hashtag-cloud

Code Review | Fetch Tweets - Hashtag Cloud

WordPress plugin Fetch Tweets - Hashtag Cloud scored84%from 54 tests.

About plugin

  • Plugin page: fetch-tweets-hash...
  • Plugin version: 1.0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2013
  • Latest release: Apr 28, 2014
  • Number of updates: 22
  • Update frequency: every 7.4 days
  • Top authors: miunosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,748 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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.32ms] Passed 4 tests

A check of server-side resources used by Fetch Tweets - Hashtag Cloud
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.91 ▼0.48
Dashboard /wp-admin3.31 ▼0.0442.86 ▼15.89
Posts /wp-admin/edit.php3.36 ▲0.0045.10 ▼0.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.20 ▼12.58
Media Library /wp-admin/upload.php3.23 ▲0.0032.39 ▼4.17

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Fetch Tweets - Hashtag Cloud
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.261.75 ▲0.0845.70 ▲5.93
Dashboard /wp-admin2,195 ▲145.55 ▼0.1583.39 ▼13.2037.96 ▼6.93
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0033.55 ▼1.6434.93 ▼1.96
Add New Post /wp-admin/post-new.php1,526 ▼1123.05 ▲5.01657.78 ▲31.2260.01 ▼11.37
Media Library /wp-admin/upload.php1,391 ▼64.21 ▲0.0698.30 ▼5.7239.91 ▼2.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'FetchTweets_Commons' not found in wp-content/plugins/fetch-tweets-hashtag-cloud/hashtagcloud/template.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'FetchTweets_Template_Settings_Hashtag_Base' not found in wp-content/plugins/fetch-tweets-hashtag-cloud/hashtagcloud/v1/FetchTweets_Template_Settings_Hashtag.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'FetchTweets_Template_Settings' not found in wp-content/plugins/fetch-tweets-hashtag-cloud/hashtagcloud/class/FetchTweets_Template_Settings_Hashtag.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/fetch-tweets-hashtag-cloud/hashtagcloud/v1/template.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fetch-tweets-hashtag-cloud/fetch-tweets-hashtag-cloud.php:23

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: tweets, hashtag, template, fetch tweets, twitter...

fetch-tweets-hashtag-cloud/fetch-tweets-hashtag-cloud.php Passed 13 tests

The entry point to "Fetch Tweets - Hashtag Cloud" version 1.0.2.1 is a PHP file that has certain tags in its header comment area
67 characters long description:
Extracts and displays only hastags from the result of Fetch Tweets.

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
There were no executable files found in this plugin954 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8167163950
CSS11124

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity12.25
▷ Minimum class complexity2.00
▷ Maximum class complexity43.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1372.22%
▷ Protected methods527.78%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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