83% quote-of-the-day-itslum

Code Review | Quote of the Day - ITslum

WordPress plugin Quote of the Day - ITslum scored83%from 54 tests.

About plugin

  • Plugin page: quote-of-the-day-...
  • Plugin version: 3.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Jul 26, 2014
  • Latest release: Mar 15, 2022
  • Number of updates: 17
  • Update frequency: every 164.1 days
  • Top authors: ximrx (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /10,710 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.37MB] [CPU: ▼4.42ms] Passed 4 tests

Analyzing server-side resources used by Quote of the Day - ITslum
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3843.85 ▼0.27
Dashboard /wp-admin3.68 ▲0.3849.37 ▼2.46
Posts /wp-admin/edit.php3.73 ▲0.3848.93 ▼5.07
Add New Post /wp-admin/post-new.php6.26 ▲0.3894.81 ▼9.89
Media Library /wp-admin/upload.php3.60 ▲0.3738.74 ▲4.43

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

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

Browser metrics Passed 4 tests

Quote of the Day - ITslum: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.122.14 ▲0.5451.94 ▲7.85
Dashboard /wp-admin2,198 ▲185.63 ▲0.0590.43 ▼0.9845.04 ▲1.23
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0340.19 ▲6.0333.27 ▼3.99
Add New Post /wp-admin/post-new.php1,535 ▲918.15 ▼5.38658.47 ▼8.4067.43 ▲12.07
Media Library /wp-admin/upload.php1,400 ▼34.19 ▲0.0297.05 ▼4.8843.42 ▼2.66

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_foo_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 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-itslum/quoteofday_itslum.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

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Screenshots: Add a description for screenshot #2 in quote-of-the-day-itslum/assets to your readme.txt
Please take inspiration from this readme.txt

quote-of-the-day-itslum/quoteofday_itslum.php 85% from 13 tests

The primary PHP file in "Quote of the Day - ITslum" version 3.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("quote-of-the-day-itslum.php" instead of "quoteofday_itslum.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 224 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 detected1,540 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116531,540

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin