78% wp-awesome-quotes

Code Review | WP Awesome Quotes

WordPress plugin WP Awesome Quotes scored78%from 54 tests.

About plugin

  • Plugin page: wp-awesome-quotes
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 5, 2021
  • Latest release: May 2, 2023
  • Number of updates: 19
  • Update frequency: every 44.5 days
  • Top authors: anku1991 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /596 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.52ms] Passed 4 tests

Server-side resources used by WP Awesome Quotes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.08 ▼9.69
Dashboard /wp-admin3.36 ▲0.0641.97 ▼8.72
Posts /wp-admin/edit.php3.41 ▲0.0549.47 ▼4.79
Add New Post /wp-admin/post-new.php5.94 ▲0.0578.30 ▼18.88
Media Library /wp-admin/upload.php3.28 ▲0.0534.48 ▼0.69
All Quotes /wp-admin/edit.php?post_type=wpaq_quotes3.3237.48
Awesome Quotes /wp-admin/admin.php?page=wpaq-settings3.2431.90
Add New Quote /wp-admin/post-new.php?post_type=wpaq_quotes3.3141.52

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: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
wpaq_enabled
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Awesome Quotes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲13813.23 ▼0.972.34 ▲0.5139.15 ▼6.00
Dashboard /wp-admin2,236 ▲595.82 ▲0.96110.01 ▲0.4980.81 ▲31.90
Posts /wp-admin/edit.php2,125 ▲502.00 ▼0.0535.42 ▼2.2934.82 ▼2.03
Add New Post /wp-admin/post-new.php1,556 ▲1422.92 ▲4.60693.64 ▲41.4257.25 ▲6.75
Media Library /wp-admin/upload.php1,421 ▲334.21 ▲0.0899.01 ▼3.2471.02 ▲28.35
All Quotes /wp-admin/edit.php?post_type=wpaq_quotes1,0821.9334.9031.07
Awesome Quotes /wp-admin/admin.php?page=wpaq-settings9272.0223.7225.25
Add New Quote /wp-admin/post-new.php?post_type=wpaq_quotes1,4132.4645.4058.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • wpaq_enabled
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-awesome-quotes/inc/general_functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-awesome-quotes/inc/admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-awesome-quotes/inc/cpt.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=wpaq-settings
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=wpaq-settings 163 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=wpaq-settings
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=wpaq-settings 178 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=wpaq-settings
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=wpaq-settings 185 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Quotes on website frontend), #2 (Admin Settings Page), #3 (List quotes)
  • Requires at least: Invalid version format
You can look at the official readme.txt

wp-awesome-quotes/wp-awesome-quotes.php Passed 13 tests

The main PHP file in "WP Awesome Quotes" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
The plugin displays a random quote on the time of page loading.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected283 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44341283

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-20x20.png0.57KB0.46KB▼ 20.75%