68% quotes-llama

Code Review | Quotes llama

WordPress plugin Quotes llama scored68%from 54 tests.

About plugin

  • Plugin page: quotes-llama
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-6.3
  • WordPress version: 6.3.1
  • First release: Jan 20, 2016
  • Latest release: Aug 15, 2023
  • Number of updates: 188
  • Update frequency: every 14.7 days
  • Top authors: oooorgle (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

800+ active /20,341 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Quotes llama
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.56 ▼7.66
Dashboard /wp-admin3.37 ▲0.0353.13 ▼12.48
Posts /wp-admin/edit.php3.49 ▲0.1356.27 ▲8.45
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.58 ▼8.63
Media Library /wp-admin/upload.php3.28 ▲0.0536.32 ▲1.36

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: 1 new table, 8 new options
New tables
wp_quotes_llama
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
quotes-llama-settings
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_widgetquotesllama

Browser metrics Passed 4 tests

Quotes llama: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲21814.90 ▲0.531.68 ▼0.1744.71 ▲0.99
Dashboard /wp-admin2,366 ▲2116.44 ▲0.88136.72 ▲23.9540.47 ▼1.11
Posts /wp-admin/edit.php2,275 ▲1833.60 ▲1.6153.49 ▲17.7234.82 ▲1.59
Add New Post /wp-admin/post-new.php1,535 ▼717.52 ▼0.69633.69 ▼6.7835.79 ▼20.38
Media Library /wp-admin/upload.php1,414 ▲294.21 ▼0.0187.08 ▼38.6242.65 ▼9.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_quotes_llama
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_widgetquotesllama
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/quotes-llama/class-quotesllama.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/quotes-llama/inc/dashicons/dash-icons.php:360
    • > PHP Fatal error
      Uncaught Error: Class 'QuotesLlama' not found in wp-content/plugins/quotes-llama/class-quotesllama-table.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'QuotesLlama' not found in wp-content/plugins/quotes-llama/class-quotesllama-backup.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quotes-llama/class-quotesllama-widget.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: share, think, quote

quotes-llama/class-quotesllama.php 85% from 13 tests

"Quotes llama" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/lang" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("quotes-llama.php" instead of "class-quotesllama.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected7,689 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP78891,9895,982
JavaScript22845201,149
CSS167812558

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity179.75
▷ Minimum class complexity32.00
▷ Maximum class complexity534.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity90.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods153
▷ Static methods00.00%
▷ Public methods8052.29%
▷ Protected methods1912.42%
▷ Private methods5435.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin