94% wp-change-logo

Code Review | WP Change logo

WordPress plugin WP Change logo scored 94% from 54 tests.

About plugin

  • Plugin page: wp-change-logo
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 5.8.1
  • First release: Nov 1, 2018
  • Latest release: Nov 1, 2018
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: accentcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 291 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼136.30ms] Passed 4 tests

This is a short check of server-side resources used by WP Change logo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1936.94 ▲16.77
Dashboard /wp-admin3.13 ▲0.0856.43 ▲11.20
Posts /wp-admin/edit.php3.24 ▲0.1445.05 ▲7.68
Add New Post /wp-admin/post-new.php5.50 ▲0.0789.70 ▼561.79
Media Library /wp-admin/upload.php3.08 ▲0.0736.35 ▼2.28

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Change logo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,837 ▲24116.91 ▲1.2513.00 ▲2.8048.51 ▲0.21
Dashboard /wp-admin3,016 ▲856.57 ▲0.50145.08 ▼21.79102.77 ▼1.80
Posts /wp-admin/edit.php2,791 ▲523.14 ▲0.4272.84 ▲3.6986.28 ▲1.09
Add New Post /wp-admin/post-new.php1,651 ▲15121.29 ▲2.57335.61 ▼64.34104.03 ▼2.99
Media Library /wp-admin/upload.php1,856 ▲495.39 ▲0.38142.69 ▼24.44124.55 ▲12.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-change-logo/public/partials/wp-change-logo-public-display.php
    • > /wp-content/plugins/wp-change-logo/admin/partials/wp-change-logo-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-change-logo === )
  • Screenshots: Please add images for these screenshots: #1 (This screen shot display plugin in install plugin page screenshot-1.(png|jpg|jpeg|gif).), #2 (This screen shot display setting page in admin dashbaord screenshot-2.(png|jpg|jpeg|gif).), #3 (This screen shot display logo settings in admin dashbaord screenshot-3.(png|jpg|jpeg|gif).), #4 (This screen shot display logo page after customization screenshot-4.(png|jpg|jpeg|gif).)
You can look at the official readme.txt

wp-change-logo/wp-change-logo.php Passed 13 tests

Analyzing the main PHP file in "WP Change logo" version 1.0.0
127 characters long description:
This plugin helps you to customize wordpress defualt login page. You can change logo and body background color, text color etc.

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 plugin411 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12143586344
CSS23858
JavaScript24549

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.14
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.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
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.PNG47.94KB21.91KB▼ 54.31%
assets/screenshot-4.PNG13.58KB6.95KB▼ 48.81%
assets/screenshot-1.PNG6.67KB4.51KB▼ 32.47%
assets/screenshot-2.PNG2.57KB2.01KB▼ 22.04%