99% wp-quote-of-the-day

Code Review | WP Quote of the Day

WordPress plugin WP Quote of the Day scored 99% from 54 tests.

About plugin

  • Plugin page: wp-quote-of-the-day
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 5.8.1
  • First release: Jun 5, 2017
  • Latest release: Jul 6, 2017
  • Number of updates: 15
  • Update frequency: every 2.1 days
  • Top authors: syqel (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active / 1,331 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼137.43ms] Passed 4 tests

This is a short check of server-side resources used by WP Quote of the Day
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.093,282.00 ▲3,246.54
Dashboard /wp-admin3.21 ▲0.1552.58 ▲5.77
Posts /wp-admin/edit.php3.26 ▲0.1451.91 ▼0.53
Add New Post /wp-admin/post-new.php5.48 ▲0.0593.45 ▼564.40
Media Library /wp-admin/upload.php3.07 ▲0.0740.26 ▲9.44

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP Quote of the Day
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,094 ▲45717.81 ▲2.2615.44 ▲5.3778.33 ▲26.09
Dashboard /wp-admin3,201 ▲2677.98 ▲1.81172.94 ▲8.86107.42 ▼16.18
Posts /wp-admin/edit.php2,996 ▲2604.32 ▲1.6494.19 ▲17.4195.53 ▲5.11
Add New Post /wp-admin/post-new.php1,522 ▲2418.61 ▼0.37339.09 ▼46.20134.19 ▲22.10
Media Library /wp-admin/upload.php1,845 ▲354.82 ▼0.20119.89 ▼38.49132.40 ▲9.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6 in wp-quote-of-the-day/assets to your readme.txt
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can look at the official readme.txt

wp-quote-of-the-day/WpQuoteOfTheDay.php 92% from 13 tests

The main file in "WP Quote of the Day" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-quote-of-the-day.php" instead of "WpQuoteOfTheDay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,875 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP310771,473
JavaScript4580220
CSS4310182

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity28.50
▷ Minimum class complexity19.00
▷ Maximum class complexity38.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods419.05%
▷ Public methods1466.67%
▷ Protected methods00.00%
▷ Private methods733.33%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin