89% quotable-tweets

Code Review | Quotable Tweets by DraftPress

WordPress plugin Quotable Tweets by DraftPress scored89%from 54 tests.

About plugin

  • Plugin page: quotable-tweets
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8.1
  • WordPress version: 6.3.1
  • First release: May 19, 2015
  • Latest release: Sep 16, 2021
  • Number of updates: 14
  • Update frequency: every 165.1 days
  • Top authors: 99robots (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,259 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Quotable Tweets by DraftPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.48 ▼3.65
Dashboard /wp-admin3.32 ▲0.0150.59 ▼9.94
Posts /wp-admin/edit.php3.37 ▲0.0152.31 ▼2.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.67 ▼17.05
Media Library /wp-admin/upload.php3.24 ▲0.0140.58 ▲1.27

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
widget_quotable_tweets
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Quotable Tweets by DraftPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.27 ▼1.091.87 ▼0.2041.35 ▼3.09
Dashboard /wp-admin2,212 ▲94.83 ▼0.08104.65 ▼17.1738.17 ▼11.84
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0235.10 ▼7.6936.27 ▼2.89
Add New Post /wp-admin/post-new.php1,559 ▲1418.16 ▼4.97645.03 ▼50.0994.65 ▲27.00
Media Library /wp-admin/upload.php1,403 ▲64.27 ▲0.07100.00 ▼5.2643.85 ▼4.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_quotable_tweets
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

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

The main PHP script in "Quotable Tweets by DraftPress" version 1.1.7 is automatically included on every request by WordPress
106 characters long description:
The Quotable Tweets plugin gives you an easy way to add a beautiful actionable tweet link to your sidebar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected214 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14492122
CSS112089
Markdown1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 1.11MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png38.32KB11.20KB▼ 70.78%
twitter-icon.png12.08KB5.28KB▼ 56.29%
assets/banner-1544x500.png781.97KB667.78KB▼ 14.60%
assets/icon-128x128.png9.82KB4.07KB▼ 58.53%
assets/screenshot-2.png99.56KB31.96KB▼ 67.90%