10% qutenizer

Code Review | QutenizeR

WordPress plugin QutenizeR scored10%from 54 tests.

About plugin

  • Plugin page: qutenizer
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Nov 6, 2013
  • Latest release: Mar 10, 2015
  • Number of updates: 9
  • Update frequency: every 54.4 days
  • Top authors: dweius (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /893 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method QutenizeRInit::on_activate() should not be called statically

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

An overview of server-side resources used by QutenizeR
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.46 ▼4.45
Dashboard /wp-admin3.32 ▲0.0245.01 ▲0.36
Posts /wp-admin/edit.php3.37 ▲0.0249.74 ▲0.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0299.70 ▼0.55
Media Library /wp-admin/upload.php3.25 ▲0.0235.18 ▲0.97
QutenizeR /wp-admin/options-general.php?page=qutenizer-options3.2932.03

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 13 new options
New WordPress options
qutenizer_version
qutenizer_shape
qutenizer_color_three
theysaidso_admin_options
widget_recent-comments
qutenizer_color_one
can_compress_scripts
qutenizer_color_two
widget_theysaidso_widget
qutenizer_color_type
...

Browser metrics Passed 4 tests

Checking browser requirements for QutenizeR
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.464.53 ▲2.7943.26 ▲2.36
Dashboard /wp-admin2,210 ▲194.87 ▲0.01111.84 ▲6.7244.85 ▲0.42
Posts /wp-admin/edit.php2,096 ▲72.05 ▼0.1340.37 ▼0.1035.87 ▲0.56
Add New Post /wp-admin/post-new.php1,519 ▼917.48 ▼0.73595.16 ▼28.4345.79 ▼19.16
Media Library /wp-admin/upload.php1,395 ▲44.40 ▲0.23101.92 ▲4.4943.05 ▼0.75
QutenizeR /wp-admin/options-general.php?page=qutenizer-options9141.7727.9438.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method QutenizeRInit::on_deactivate() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/qutenizer/qutenizer.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/qutenizer/qutenizer_admin.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Overview of Add New Post edit page with 'Generate from Post' option enabled), #2 (Overview of the Media Library after generating some image codes from Hello World! post), #3 (Editing the Hello World! post after importing images from the Media Library), #4 (Overview of QutenizeR manager, under Settings menu)
The official readme.txt is a good inspiration

qutenizer/qutenizer.php Passed 13 tests

The primary PHP file in "QutenizeR" version 0.2.0 is used by WordPress to initiate all plugin functionality
86 characters long description:
QutenizeR plugin for WordPress is a funny way to easy create cute & colorful QR codes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,478 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript218039965
PHP531888513

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.50MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png91.10KB35.76KB▼ 60.75%
jscolor/hs.png2.62KB7.54KB0.00%
screenshot-3.png184.00KB73.94KB▼ 59.81%
screenshot-4.png92.88KB36.38KB▼ 60.83%
screenshot-2.png83.54KB34.29KB▼ 58.96%