68% tiny-wow-colors

Code Review | Tiny WoW colors

WordPress plugin Tiny WoW colors scored68%from 54 tests.

About plugin

  • Plugin page: tiny-wow-colors
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 2, 2012
  • Latest release: Jul 30, 2012
  • Number of updates: 25
  • Update frequency: every 4.8 days
  • Top authors: KwarK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,158 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 gracefully, with no errors

Server metrics [RAM: ▼1.94MB] [CPU: ▼59.16ms] Passed 4 tests

This is a short check of server-side resources used by Tiny WoW colors
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.405.29 ▼38.38
Dashboard /wp-admin2.12 ▼1.278.32 ▼60.15
Posts /wp-admin/edit.php2.12 ▼1.286.80 ▼43.71
Add New Post /wp-admin/post-new.php2.12 ▼3.818.43 ▼94.39
Media Library /wp-admin/upload.php2.12 ▼1.159.71 ▼27.57

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tiny WoW colors
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7914.72 ▲0.442.06 ▼0.5646.01 ▲3.14
Dashboard /wp-admin2,213 ▲335.63 ▼0.0289.59 ▲0.3437.69 ▼8.66
Posts /wp-admin/edit.php2,118 ▲181.99 ▼0.0039.32 ▼1.5435.92 ▲4.35
Add New Post /wp-admin/post-new.php1,541 ▲1023.19 ▼0.16666.66 ▼29.5456.49 ▼6.25
Media Library /wp-admin/upload.php1,418 ▲184.11 ▼0.02108.28 ▼8.1346.82 ▼2.49
Tiny WoW /wp-admin/tinywowcolor.php260.420.0814.83

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
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the tinywow_admin_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% 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 | 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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tiny-wow-colors/tinywowcolor.php:31

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/tinywowcolor.php
    • > Network (severe)
    wp-admin/tinywowcolor.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (No screenshot actually)
Please take inspiration from this readme.txt

tiny-wow-colors/tinywowcolor.php 85% from 13 tests

This is the main PHP file of "Tiny WoW colors" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tiny-wow-colors.php" instead of "tinywowcolor.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 252 characters long)

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
There were no executable files found in this plugin852 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript992153540
PHP14239218
PO File24813492
CSS2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Constants1
▷ Global constants1100.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
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/rare.png1.33KB1.34KB0.00%
js/kwyoutube.png0.58KB0.63KB0.00%
js/legend.png1.33KB1.19KB▼ 10.28%
js/normal.png1.27KB1.17KB▼ 7.63%
js/artefact.png1.28KB1.24KB▼ 2.76%