84% quick-and-easy-tweets

Code Review | Quick and Easy Tweets

WordPress plugin Quick and Easy Tweets scored84%from 54 tests.

About plugin

  • Plugin page: quick-and-easy-tw...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 10, 2016
  • Latest release: Jun 6, 2023
  • Number of updates: 16
  • Update frequency: every 161.4 days
  • Top authors: saqibsarwar (62.5%)fahidjavid (18.75%)usmanaliqureshi (18.75%)sungraiz (18.75%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,553 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.92ms] Passed 4 tests

Analyzing server-side resources used by Quick and Easy Tweets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.09 ▼10.99
Dashboard /wp-admin3.36 ▲0.0649.05 ▼7.06
Posts /wp-admin/edit.php3.47 ▲0.1249.27 ▼7.28
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.51 ▼14.36
Media Library /wp-admin/upload.php3.28 ▲0.0639.10 ▲3.16

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Quick and Easy Tweets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.24 ▼1.131.67 ▼0.4840.58 ▼5.02
Dashboard /wp-admin2,206 ▲184.92 ▲0.01102.08 ▼14.8338.86 ▼3.16
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0436.13 ▼0.4235.71 ▼0.47
Add New Post /wp-admin/post-new.php1,514 ▼1917.78 ▼5.31696.34 ▲10.0958.64 ▼1.81
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.01109.78 ▲5.4348.18 ▲4.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_quick-and-easy-tweets
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quick-and-easy-tweets/quick-and-easy-tweets.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: Please take inspiration from this readme.txt

quick-and-easy-tweets/quick-and-easy-tweets.php 92% from 13 tests

The primary PHP file in "Quick and Easy Tweets" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,049 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4200384836
PO File36870213

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods82
▷ Static methods1012.20%
▷ Public methods7186.59%
▷ Protected methods22.44%
▷ Private methods910.98%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png10.66KB4.95KB▼ 53.59%
assets/banner-772x250.png11.73KB5.27KB▼ 55.06%
assets/banner-1544x500.png18.86KB7.33KB▼ 61.13%
assets/screenshot-1.png86.75KB27.54KB▼ 68.25%
assets/screenshot-2.png81.21KB23.68KB▼ 70.85%