94% custom-windows-pinned-tiles

Code Review | Custom Windows Pinned Tiles

WordPress plugin Custom Windows Pinned Tiles scored 94% from 54 tests.

About plugin

  • Plugin page: custom-windows-pi...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 5.8.1
  • First release: Feb 12, 2013
  • Latest release: Dec 23, 2014
  • Number of updates: 18
  • Update frequency: every 37.7 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 6,731 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼146.62ms] Passed 4 tests

Analyzing server-side resources used by Custom Windows Pinned Tiles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1230.72 ▲10.94
Dashboard /wp-admin3.07 ▲0.0155.14 ▲8.33
Posts /wp-admin/edit.php3.12 ▲0.0143.97 ▼1.50
Add New Post /wp-admin/post-new.php5.43 ▼0.0189.09 ▼594.14
Media Library /wp-admin/upload.php3.01 ▲0.0133.23 ▲0.84
Windows Pinned Tiles /wp-admin/options-general.php?page=custom-windows-pinned-tiles/custom-windows-pinned-tiles.php3.0133.31

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
cwptiles_options

Browser metrics Passed 4 tests

Checking browser requirements for Custom Windows Pinned Tiles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲11215.93 ▲0.5610.18 ▲1.3141.36 ▼9.09
Dashboard /wp-admin2,975 ▲415.90 ▼0.33148.65 ▼8.75112.63 ▲1.61
Posts /wp-admin/edit.php2,741 ▲22.72 ▲0.0064.24 ▼10.1488.68 ▼30.72
Add New Post /wp-admin/post-new.php1,507 ▼10818.53 ▼3.12393.94 ▲101.58120.26 ▲12.56
Media Library /wp-admin/upload.php1,815 ▲85.10 ▲0.09159.03 ▼9.79112.46 ▼5.40
Windows Pinned Tiles /wp-admin/options-general.php?page=custom-windows-pinned-tiles/custom-windows-pinned-tiles.php1,7784.47138.83120.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% 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)
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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/custom-windows-pinned-tiles/custom-windows-pinned-tiles.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

custom-windows-pinned-tiles/custom-windows-pinned-tiles.php Passed 13 tests

The main PHP script in "Custom Windows Pinned Tiles" version 2.1 is automatically included on every request by WordPress
107 characters long description:
Create custom, live-updating tiles (with images!) for Windows 8.1/IE11 users to pin to their Start Screens.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin301 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12649269
JavaScript18732

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.05MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
default-wp-logo.png6.08KB6.10KB0.00%
start-screen-preview.png46.70KB48.02KB0.00%
blank-ms-tile.png0.54KB0.46KB▼ 14.86%