84% blizzard-quotes

Code Review | Blizzard Quotes

WordPress plugin Blizzard Quotes scored84%from 54 tests.

About plugin

  • Plugin page: blizzard-quotes
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.5
  • WordPress version: 6.3.1
  • First release: Jul 16, 2014
  • Latest release: Apr 20, 2016
  • Number of updates: 6
  • Update frequency: every 107.3 days
  • Top authors: plumwd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /3,441 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.03MB] [CPU: ▼5.69ms] Passed 4 tests

Analyzing server-side resources used by Blizzard Quotes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.20 ▲0.35
Dashboard /wp-admin3.34 ▲0.0349.54 ▲3.05
Posts /wp-admin/edit.php3.39 ▲0.0346.66 ▼7.14
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.74 ▼17.15
Media Library /wp-admin/upload.php3.26 ▲0.0335.31 ▲1.20

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 15 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
bluepost_link_color
widget_recent-posts
bluepost_radius
bluepost_bg_repeat
bluepost_bg_color
bluepost_text_color
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by Blizzard Quotes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲10713.74 ▼0.634.87 ▲2.9343.66 ▼8.71
Dashboard /wp-admin2,231 ▲465.25 ▼0.61113.80 ▲5.3987.52 ▲45.59
Posts /wp-admin/edit.php2,134 ▲452.29 ▲0.3038.76 ▼4.2137.29 ▲1.35
Add New Post /wp-admin/post-new.php1,548 ▲2723.14 ▲0.00692.34 ▲66.1938.40 ▼17.56
Media Library /wp-admin/upload.php1,425 ▲434.44 ▲0.20115.71 ▲16.3945.65 ▲2.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 15 options in the database
    • widget_recent-comments
    • bluepost_postedby_link_color
    • theysaidso_admin_options
    • bluepost_bg_repeat
    • can_compress_scripts
    • bluepost_bg_scroll
    • bluepost_link_color
    • bluepost_radius
    • db_upgraded
    • bluepost_bg_color
    • ...

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blizzard-quotes/blizzard-quotes.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/blizzard-quotes/settings.php:2

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: The official readme.txt might help

blizzard-quotes/blizzard-quotes.php Passed 13 tests

"Blizzard Quotes" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Add a Blizzard blue quote to your post or page using a simple shortcode.

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
Success! There were no dangerous files found in this plugin313 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP2617227
JavaScript212541
CSS23225
XML30020

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions10
▷ Named functions10100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/plumeria.png2.82KB1.54KB▼ 45.33%
img/bluequote.png1.19KB0.15KB▼ 87.23%