83% tuxquote

Code Review | Tuxquote

WordPress plugin Tuxquote scored83%from 54 tests.

About plugin

  • Plugin page: tuxquote
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2014
  • Latest release: Dec 31, 2014
  • Number of updates: 16
  • Update frequency: every 18.7 days
  • Top authors: eldougo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,124 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.98ms] Passed 4 tests

This is a short check of server-side resources used by Tuxquote
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.19 ▼6.19
Dashboard /wp-admin3.33 ▲0.0347.17 ▼4.40
Posts /wp-admin/edit.php3.38 ▲0.0351.45 ▲4.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.20 ▼14.55
Media Library /wp-admin/upload.php3.26 ▲0.0335.16 ▲1.22

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 174 new files
Database: no new tables, 7 new options
New WordPress options
widget_tuxquote_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Tuxquote
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.16 ▼1.141.69 ▼0.0342.13 ▼1.28
Dashboard /wp-admin2,200 ▲124.87 ▼1.10109.71 ▼6.0839.34 ▼3.01
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0239.46 ▲2.3036.75 ▼2.73
Add New Post /wp-admin/post-new.php1,533 ▼023.10 ▼0.08679.47 ▲9.1162.29 ▲11.99
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0296.89 ▼5.3842.83 ▲1.51

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
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_tuxquote_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/tuxquote/tuxquote.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Tuxquote in action - static sample only.), #2 (Tuxquote in action - static sample only.)
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

tuxquote/tuxquote.php Passed 13 tests

The principal PHP file in "Tuxquote" v. 1.3 is loaded by WordPress automatically on each request
65 characters long description:
Show a random image of Tux the Linux penguin with a random quote.

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 plugin113 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22372113

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
164 PNG files occupy 11.17MB with 7.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/santang-tux-on-wc-9566.png60.21KB18.23KB▼ 69.73%
images/pusio-yankees-tux-18626.png41.42KB14.21KB▼ 65.70%
images/kami23-william-wallux-+-sword-4918.png78.66KB25.17KB▼ 68.00%
images/overlord59-devil-may-cry-1645.png57.91KB19.05KB▼ 67.11%
images/nidoki-super-tux-1815.png48.24KB13.10KB▼ 72.84%