90% wp-xlogo-changer

Code Review | WP xLogo Changer

WordPress plugin WP xLogo Changer scored90%from 54 tests.

About plugin

  • Plugin page: wp-xlogo-changer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: Jan 29, 2016
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: nexxoz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /882 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WP xLogo Changer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.85 ▲3.35
Dashboard /wp-admin3.33 ▲0.0247.50 ▼1.07
Posts /wp-admin/edit.php3.38 ▲0.0250.52 ▼2.87
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.12 ▼4.09
Media Library /wp-admin/upload.php3.25 ▲0.0239.52 ▼0.19
WP xLogo Changer /wp-admin/options-general.php?page=wp_xlogo_changer_dashboard3.2235.59

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP xLogo Changer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.34 ▼0.011.94 ▲0.1333.11 ▼10.07
Dashboard /wp-admin2,200 ▲265.57 ▼0.0187.81 ▼2.1841.52 ▲1.00
Posts /wp-admin/edit.php2,122 ▲222.24 ▲0.2236.90 ▲1.2638.23 ▲2.86
Add New Post /wp-admin/post-new.php1,535 ▲923.39 ▼0.14676.72 ▼25.1061.48 ▲9.82
Media Library /wp-admin/upload.php1,418 ▲184.27 ▲0.06116.00 ▲8.1753.47 ▲7.30
WP xLogo Changer /wp-admin/options-general.php?page=wp_xlogo_changer_dashboard8671.7827.2531.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: branding, customization, custom login, login, wp-login...

wp-xlogo-changer/index.php 92% from 13 tests

The main PHP script in "WP xLogo Changer" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-xlogo-changer.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected115 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3211282
JavaScript112022
CSS11011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin