10% favicon-xt-manager

Code Review | Favicon XT-Manager

WordPress plugin Favicon XT-Manager scored10%from 54 tests.

About plugin

  • Plugin page: favicon-xt-manager
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: May 21, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: cjbmeb14 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

6,000+ active /64,337 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/favicon-xt-manager/index.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; phpxtFaviconXtManager has a deprecated constructor

Server metrics [RAM: ▼0.95MB] [CPU: ▼35.67ms] Passed 4 tests

Server-side resources used by Favicon XT-Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0726.93 ▼18.90
Dashboard /wp-admin3.00 ▼0.3126.10 ▼30.22
Posts /wp-admin/edit.php3.00 ▼0.3623.56 ▼26.05
Add New Post /wp-admin/post-new.php3.00 ▼2.8926.00 ▼67.51
Media Library /wp-admin/upload.php3.00 ▼0.2322.59 ▼12.67

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
phpxtFaviconXtManagerOptions
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Favicon XT-Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.78 ▲0.401.62 ▼0.1545.68 ▲5.97
Dashboard /wp-admin2,232 ▲265.79 ▲0.93102.56 ▼0.3636.56 ▼4.46
Posts /wp-admin/edit.php2,117 ▲382.06 ▼0.0734.03 ▼5.7933.83 ▲0.23
Add New Post /wp-admin/post-new.php1,559 ▲2723.35 ▲0.12630.46 ▼10.1662.41 ▲12.79
Media Library /wp-admin/upload.php1,420 ▲204.24 ▲0.00103.79 ▼1.5144.35 ▼3.09

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
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/favicon-xt-manager/index.php+170
    Non-static method phpxtFaviconXtManager::phpxtFaviconXtManagerMenu() should not be called statically
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • phpxtFaviconXtManagerOptions
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/favicon-xt-manager/index.php:162

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

favicon-xt-manager/index.php 85% from 13 tests

"Favicon XT-Manager" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 324 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("favicon-xt-manager.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
Good job! No executable or dangerous file extensions detected138 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11922138

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/favicon.png17.98KB0.34KB▼ 98.10%