83% daily-quotes-by-jar-of-quotes

Code Review | Daily Quotes by Jar of Quotes

WordPress plugin Daily Quotes by Jar of Quotes scored83%from 54 tests.

About plugin

  • Plugin page: daily-quotes-by-j...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Oct 23, 2018
  • Latest release: Oct 23, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: jesseneo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /621 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.51ms] Passed 4 tests

A check of server-side resources used by Daily Quotes by Jar of Quotes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.16 ▼7.34
Dashboard /wp-admin3.33 ▼0.0148.68 ▼17.03
Posts /wp-admin/edit.php3.38 ▲0.0355.85 ▲2.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.28 ▼16.40
Media Library /wp-admin/upload.php3.25 ▲0.0338.57 ▲4.79

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/daily-quotes-by-jar-of-quotes/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_daily_quotes_by_jar_of_quotes
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Daily Quotes by Jar of Quotes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲5414.48 ▲0.072.14 ▲0.2444.27 ▲3.14
Dashboard /wp-admin2,224 ▲185.86 ▲0.06102.32 ▼10.3736.58 ▼7.03
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0037.08 ▼4.4333.34 ▼2.95
Add New Post /wp-admin/post-new.php1,532 ▼823.63 ▲0.62703.85 ▲86.3960.20 ▲21.97
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.0197.12 ▼15.3544.72 ▼5.73

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 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_daily_quotes_by_jar_of_quotes
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/daily-quotes-by-jar-of-quotes/Daily_Quotes_By_Jar_Of_Quotes.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

daily-quotes-by-jar-of-quotes/Daily_Quotes_By_Jar_Of_Quotes.php 92% from 13 tests

The primary PHP file in "Daily Quotes by Jar of Quotes" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("daily-quotes-by-jar-of-quotes.php" instead of "Daily_Quotes_By_Jar_Of_Quotes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected89 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1362489

PHP code Passed 2 tests

Analyzing 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.26
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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