83% my-twitter-timelines

Code Review | My Twitter Timelines

WordPress plugin My Twitter Timelines scored83%from 54 tests.

About plugin

  • Plugin page: my-twitter-timelines
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Sep 16, 2016
  • Number of updates: 17
  • Update frequency: every 55.4 days
  • Top authors: audaciotechit (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /6,199 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.16ms] Passed 4 tests

A check of server-side resources used by My Twitter Timelines
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.76 ▼3.29
Dashboard /wp-admin3.36 ▲0.0259.44 ▼5.05
Posts /wp-admin/edit.php3.41 ▲0.0646.82 ▼5.59
Add New Post /wp-admin/post-new.php5.94 ▲0.0692.38 ▼6.69
Media Library /wp-admin/upload.php3.28 ▲0.0532.63 ▼2.19

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_mytwitter
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Twitter Timelines
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.114.37 ▲2.6438.80 ▼10.14
Dashboard /wp-admin2,203 ▲125.90 ▲0.04106.86 ▲7.4943.72 ▼0.14
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0439.08 ▲0.4433.89 ▼1.11
Add New Post /wp-admin/post-new.php1,520 ▼023.14 ▲0.11565.69 ▼82.8655.55 ▼9.41
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.0597.38 ▼12.4940.05 ▼8.88

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
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_mytwitter
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/my-twitter-timelines/my_twitter_timelines.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
  • Screenshots: Add images for these screenshots: #1 (Screenshot of the widget), #2 (Sneak Peak of the backend)
You can look at the official readme.txt

my-twitter-timelines/my_twitter_timelines.php 85% from 13 tests

The principal PHP file in "My Twitter Timelines" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("my-twitter-timelines.php" instead of "my_twitter_timelines.php")
  • Description: The description should be shorter than 140 characters (currently 314 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin288 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13316288

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity82.00
▷ Minimum class complexity82.00
▷ Maximum class complexity82.00
Average method complexity28.00
▷ Minimum method complexity1.00
▷ Maximum method complexity49.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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin