83% picture-quote-of-the-day-by-azquotes

Code Review | Picture Quote of the Day by AZQuotes

WordPress plugin Picture Quote of the Day by AZQuotes scored83%from 54 tests.

About plugin

  • Plugin page: picture-quote-of-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Feb 15, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: azquotes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,433 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
Install script ran successfully

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

This is a short check of server-side resources used by Picture Quote of the Day by AZQuotes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0243.96 ▲0.73
Dashboard /wp-admin3.37 ▲0.0249.70 ▼3.84
Posts /wp-admin/edit.php3.42 ▲0.0249.32 ▼11.81
Add New Post /wp-admin/post-new.php5.95 ▲0.02103.94 ▼8.02
Media Library /wp-admin/upload.php3.30 ▲0.0242.13 ▲6.40

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_azq_widget

Browser metrics Passed 4 tests

Checking browser requirements for Picture Quote of the Day by AZQuotes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.26 ▼0.031.85 ▼0.0540.47 ▼1.85
Dashboard /wp-admin2,192 ▲125.64 ▲0.0495.58 ▲2.3845.79 ▲3.69
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0141.34 ▼3.2137.01 ▲0.33
Add New Post /wp-admin/post-new.php1,531 ▲323.01 ▼0.24670.89 ▼21.2460.65 ▼3.36
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.11113.79 ▲6.3849.06 ▲2.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_azq_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/picture-quote-of-the-day-by-azquotes/azquotes_widget.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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: Please take inspiration from this readme.txt

picture-quote-of-the-day-by-azquotes/azquotes_widget.php 85% from 13 tests

Analyzing the main PHP file in "Picture Quote of the Day by AZQuotes" version 1.1
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 321 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("picture-quote-of-the-day-by-azquotes.php" instead of "azquotes_widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1175357

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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