83% quote-of-the-day-tellmequotes

Code Review | Quote of The Day by TellmeQuotes

WordPress plugin Quote of The Day by TellmeQuotes scored83%from 54 tests.

About plugin

  • Plugin page: quote-of-the-day-...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 4, 2016
  • Latest release: Jul 5, 2016
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: vivekmoyal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /887 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.29ms] Passed 4 tests

Server-side resources used by Quote of The Day by TellmeQuotes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.72 ▲3.46
Dashboard /wp-admin3.31 ▼0.0343.17 ▼18.47
Posts /wp-admin/edit.php3.37 ▲0.0143.18 ▼0.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.11 ▼5.87
Media Library /wp-admin/upload.php3.24 ▲0.0136.25 ▲3.96

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_foo_widget
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quote of The Day by TellmeQuotes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.14 ▼0.211.76 ▲0.2245.99 ▲5.95
Dashboard /wp-admin2,192 ▲175.54 ▼0.1284.77 ▼20.9138.06 ▼3.16
Posts /wp-admin/edit.php2,097 ▼31.98 ▲0.0136.45 ▲1.6633.63 ▲0.03
Add New Post /wp-admin/post-new.php1,526 ▼023.46 ▲0.38677.87 ▲1.6454.01 ▼8.84
Media Library /wp-admin/upload.php1,394 ▼34.17 ▲0.0196.82 ▼8.3740.65 ▼4.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_foo_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quote-of-the-day-tellmequotes/tellmequotes_widget.php:29

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 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (1. Configuring the widget on the admin screen (Appearance, Widgets)), #2 (Screenshot of the wordpress page with a Quote Of The Day widget)
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

quote-of-the-day-tellmequotes/tellmequotes_widget.php 85% from 13 tests

This is the main PHP file of "Quote of The Day by TellmeQuotes" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("quote-of-the-day-tellmequotes.php" instead of "tellmequotes_widget.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1145247

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png115.10KB36.28KB▼ 68.48%
screenshot-2.png66.10KB18.63KB▼ 71.81%