79% get-my-tweets-uk

Code Review | Get My Tweets UK

WordPress plugin Get My Tweets UK scored79%from 54 tests.

About plugin

  • Plugin page: get-my-tweets-uk
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Oct 3, 2013
  • Latest release: Oct 3, 2013
  • Number of updates: 7
  • Update frequency: every 3.0 days
  • Top authors: matthewordie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /792 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.38ms] Passed 4 tests

A check of server-side resources used by Get My Tweets UK
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.98 ▼0.57
Dashboard /wp-admin3.33 ▲0.0250.53 ▲1.96
Posts /wp-admin/edit.php3.38 ▲0.0246.77 ▼4.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.57 ▼17.85
Media Library /wp-admin/upload.php3.25 ▲0.0235.88 ▲1.08
Get My Tweets /wp-admin/options-general.php?page=get-my-tweets-admin3.1928.20

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Get My Tweets UK
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲13714.39 ▲0.022.32 ▲0.6738.62 ▼3.64
Dashboard /wp-admin2,210 ▲224.84 ▼0.05113.44 ▼5.9342.87 ▼5.31
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0635.02 ▼3.9031.58 ▼3.15
Add New Post /wp-admin/post-new.php1,536 ▼623.11 ▲4.92653.52 ▼39.2354.91 ▼2.05
Media Library /wp-admin/upload.php1,392 ▲74.20 ▲0.0396.31 ▼2.3845.56 ▲0.72
Get My Tweets /wp-admin/options-general.php?page=get-my-tweets-admin8782.0323.1925.29

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=get-my-tweets-admin
    • > Notice in wp-content/plugins/get-my-tweets-uk/get-my-tweets-uk.php+55
    Undefined index: gmt_hidden
    • > GET request to /wp-admin/options-general.php?page=get-my-tweets-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=get-my-tweets-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/get-my-tweets-uk/get-my-tweets-uk.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: get my tweets, twitter, buckets, widget, tweets

get-my-tweets-uk/get-my-tweets-uk.php Passed 13 tests

"Get My Tweets UK" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
Easily add recent tweets to your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin103 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP121984
JavaScript10019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin