10% quote-master

Code Review | Quote Master

WordPress plugin Quote Master scored10%from 54 tests.

About plugin

  • Plugin page: quote-master
  • Plugin version: 7.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2009
  • Latest release: May 17, 2018
  • Number of updates: 325
  • Update frequency: every 10.0 days
  • Top authors: fpcorso (98.15%)amg26 (2.15%)

Code review

54 tests

User reviews

11 reviews

Install metrics

400+ active /19,374 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/quote-master/quote-master.php+88
    Function create_function() is deprecated

Server metrics [RAM: ▼1.78MB] [CPU: ▼51.93ms] Passed 4 tests

This is a short check of server-side resources used by Quote Master
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.265.63 ▼34.79
Dashboard /wp-admin2.22 ▼1.086.39 ▼43.37
Posts /wp-admin/edit.php2.22 ▼1.136.66 ▼42.49
Add New Post /wp-admin/post-new.php2.22 ▼3.668.88 ▼87.06
Media Library /wp-admin/upload.php2.22 ▼1.008.39 ▼25.80
Add New /wp-admin/post-new.php?post_type=quote2.236.92
Settings /wp-admin/edit.php?post_type=quote&page=qm_settings2.2310.23
QM About /wp-admin/index.php?page=qm_about2.236.97
Quote Category /wp-admin/edit-tags.php?taxonomy=quote_category&post_type=quote2.297.89
All Quotes /wp-admin/edit.php?post_type=quote2.237.48
Help /wp-admin/edit.php?post_type=quote&page=qm_help2.237.66

Server storage [IO: ▲0.30MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
mlw_quotes_version
widget_qm_widget
can_compress_scripts
widget_recent-comments
mlw_advert_shows

Browser metrics Passed 4 tests

A check of browser resources used by Quote Master
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.17 ▼0.111.72 ▲0.0143.16 ▲0.08
Dashboard /wp-admin2,237 ▲635.67 ▲0.1388.63 ▼6.7338.03 ▼2.04
Posts /wp-admin/edit.php2,139 ▲352.00 ▲0.0135.88 ▼0.1836.13 ▲0.33
Add New Post /wp-admin/post-new.php1,558 ▲3223.29 ▲0.27664.98 ▲22.8967.57 ▲6.53
Media Library /wp-admin/upload.php1,442 ▲424.19 ▲0.0098.24 ▼8.5846.40 ▼1.49
Add New /wp-admin/post-new.php?post_type=quote2,2977.78173.7862.78
Settings /wp-admin/edit.php?post_type=quote&page=qm_settings8752.0123.8126.49
QM About /wp-admin/index.php?page=qm_about9041.9922.8654.68
Quote Category /wp-admin/edit-tags.php?taxonomy=quote_category&post_type=quote1,3102.1227.7133.37
All Quotes /wp-admin/edit.php?post_type=quote1,1111.9030.9333.44
Help /wp-admin/edit.php?post_type=quote&page=qm_help1,3512.0326.3946.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/quote-master/quote-master.php+88
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_qm_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=quote&page=qm_help
    • > Deprecated in wp-content/plugins/quote-master/quote-master.php+88
    Function create_function() is deprecated

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
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/quote-master/php/index.php
    • > /wp-content/plugins/quote-master/languages/index.php
    • > /wp-content/plugins/quote-master/assets/index.php
    • > /wp-content/plugins/quote-master/css/index.php
    • > /wp-content/plugins/quote-master/index.php
    • > /wp-content/plugins/quote-master/js/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: quote, random, shortcode, page, widget...

quote-master/quote-master.php Passed 13 tests

The main PHP file in "Quote Master" ver. 7.1.1 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
Use this plugin to add quotes to your website.

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
Success! There were no dangerous files found in this plugin1,183 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP111043621,001
LESS3203132
JavaScript11044
CSS3003
Markdown1103

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.14
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods45
▷ Static methods920.00%
▷ Public methods4395.56%
▷ Protected methods00.00%
▷ Private methods24.44%
Functions4
▷ Named functions4100.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
3 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png154.89KB55.00KB▼ 64.49%
assets/screenshot-2.png9.21KB4.64KB▼ 49.61%
assets/screenshot-3.png76.65KB30.20KB▼ 60.61%