10% find-tweets

Code Review | Find Tweets

WordPress plugin Find Tweets scored10%from 54 tests.

About plugin

  • Plugin page: find-tweets
  • Plugin version: 0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 7, 2016
  • Latest release: Jun 21, 2016
  • Number of updates: 12
  • Update frequency: every 1.2 days
  • Top authors: lhadley91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /851 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
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/find-tweets/find-tweets.php+16
    define(): Declaration of case-insensitive constants is deprecated

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

Server-side resources used by Find Tweets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.429.10 ▼32.72
Dashboard /wp-admin2.07 ▼1.245.81 ▼46.25
Posts /wp-admin/edit.php2.07 ▼1.296.17 ▼40.42
Add New Post /wp-admin/post-new.php2.07 ▼3.825.81 ▼96.00
Media Library /wp-admin/upload.php2.07 ▼1.164.88 ▼32.80
Find Tweets /wp-admin/tools.php?page=find_tweets2.075.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Find Tweets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.29 ▼1.024.79 ▲3.0440.26 ▼7.32
Dashboard /wp-admin2,213 ▲254.86 ▼1.04103.44 ▼11.2440.11 ▼2.40
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0035.88 ▼5.5833.41 ▼2.03
Add New Post /wp-admin/post-new.php1,538 ▲1023.64 ▲5.32682.95 ▲31.9355.27 ▲1.06
Media Library /wp-admin/upload.php1,392 ▲44.13 ▼0.0698.50 ▼3.5547.01 ▲4.67
Find Tweets /wp-admin/tools.php?page=find_tweets7892.0524.5423.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/find-tweets/find-tweets.php+16
    define(): Declaration of case-insensitive constants is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=find_tweets
    • > Deprecated in wp-content/plugins/find-tweets/find-tweets.php+20
    define(): Declaration of case-insensitive constants is deprecated
    • > GET request to /wp-admin/tools.php?page=find_tweets
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ZeroClipboard handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/tools.php?page=find_tweets
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the Zeromain handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/find-tweets/find-tweets.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/find-tweets/googl.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/find-tweets/processor.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: A description for screenshot #1 is required in find-tweets/assets to your readme.txt
Please take inspiration from this readme.txt

find-tweets/find-tweets.php Passed 13 tests

The primary PHP file in "Find Tweets" version 0.11 is used by WordPress to initiate all plugin functionality
47 characters long description:
Find tweets within the content of your website.

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 plugin3,453 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5281,3303,274
PHP34121179

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin