84% quote-of-the-day-by-forameal

Code Review | Quote of the Day by Aistore

WordPress plugin Quote of the Day by Aistore scored84%from 54 tests.

About plugin

  • Plugin page: quote-of-the-day-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 6.3.1
  • First release: Aug 28, 2014
  • Latest release: Mar 27, 2022
  • Number of updates: 7
  • Update frequency: every 395.7 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /989 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Quote of the Day by Aistore
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.02 ▼3.43
Dashboard /wp-admin3.32 ▼0.0339.69 ▼19.96
Posts /wp-admin/edit.php3.37 ▲0.0145.62 ▼0.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.93 ▼12.77
Media Library /wp-admin/upload.php3.24 ▲0.0031.64 ▼2.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Quote of the Day by Aistore
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.171.60 ▼0.0338.69 ▼0.10
Dashboard /wp-admin2,206 ▲155.86 ▲0.96113.03 ▲0.3444.56 ▼4.77
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0635.22 ▼7.3234.68 ▼3.79
Add New Post /wp-admin/post-new.php1,533 ▼023.12 ▼0.08692.97 ▲22.0160.33 ▲2.58
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.03102.90 ▲4.3042.62 ▼2.66

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

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quote-of-the-day-by-forameal/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: automatic quote publish, quote, aistore, quote of the day

quote-of-the-day-by-forameal/index.php 85% from 13 tests

Analyzing the main PHP file in "Quote of the Day by Aistore" version 2.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("quote-of-the-day-by-forameal.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 283 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected12,834 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JSON10012,802
PHP1441032

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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