83% quote-of-the-day-by-quotetab

Code Review | Quote of the Day | QuoteTab

WordPress plugin Quote of the Day | QuoteTab scored 83% from 54 tests.

About plugin

  • Plugin page: quote-of-the-day-...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.0
  • WordPress version: 5.9.2
  • First release: Apr 20, 2016
  • Latest release: Mar 17, 2017
  • Number of updates: 28
  • Update frequency: every 11.8 days
  • Top authors: quotetab (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

80+ active / 4,727 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.01MB] [CPU: ▼300.37ms] Passed 4 tests

Analyzing server-side resources used by Quote of the Day | QuoteTab
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.24 ▲3.16
Dashboard /wp-admin3.42 ▲0.0132.79 ▼2.99
Posts /wp-admin/edit.php3.65 ▲0.0135.88 ▼0.38
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.42 ▼1,200.14
Media Library /wp-admin/upload.php3.30 ▲0.0125.28 ▲2.04

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_foo_widget

Browser metrics Passed 4 tests

Checking browser requirements for Quote of the Day | QuoteTab
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.02 ▲0.346.16 ▲0.062.30 ▼0.48
Dashboard /wp-admin2,892 ▲376.11 ▼0.03117.63 ▼15.70155.41 ▼4.01
Posts /wp-admin/edit.php2,688 ▼33.25 ▲0.0260.30 ▼2.84136.75 ▼1.71
Add New Post /wp-admin/post-new.php1,719 ▲5817.33 ▲0.37430.58 ▲4.03159.62 ▲7.77
Media Library /wp-admin/upload.php1,698 ▲35.49 ▲0.01136.05 ▼20.61182.35 ▼16.34

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 did not uninstall successfully, leaving 1 option in the database
    • widget_foo_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
  • 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/quote-of-the-day-by-quotetab/qt-widget.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4 in quote-of-the-day-by-quotetab/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
The official readme.txt is a good inspiration

quote-of-the-day-by-quotetab/qt-widget.php 85% from 13 tests

The main PHP file in "Quote of the Day | QuoteTab" ver. 1.8 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quote-of-the-day-by-quotetab.php" instead of "qt-widget.php")

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
Everything looks great! No dangerous files found in this plugin87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1145287

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.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
PNG images were not found in this plugin