10% phpsword-favicon-manager

Code Review | Pk Favicon Manager

WordPress plugin Pk Favicon Manager scored10%from 54 tests.

About plugin

  • Plugin page: phpsword-favicon-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2014
  • Latest release: Dec 2, 2022
  • Number of updates: 13
  • Update frequency: every 231.9 days
  • Top authors: phpsword (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /33,358 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/phpsword-favicon-manager/index.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; PhpswFaviconManager has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼56.17ms] Passed 4 tests

Analyzing server-side resources used by Pk Favicon Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.07 ▼35.23
Dashboard /wp-admin2.11 ▼1.196.04 ▼49.08
Posts /wp-admin/edit.php2.11 ▼1.256.10 ▼44.79
Add New Post /wp-admin/post-new.php2.11 ▼3.785.30 ▼95.59
Media Library /wp-admin/upload.php2.11 ▼1.125.43 ▼32.23

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Pk Favicon Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.26 ▼0.971.89 ▼0.4341.84 ▼2.61
Dashboard /wp-admin2,226 ▲414.83 ▼1.0298.78 ▼8.0538.30 ▼1.64
Posts /wp-admin/edit.php2,106 ▲142.03 ▲0.0239.82 ▼1.1234.90 ▼0.55
Add New Post /wp-admin/post-new.php1,555 ▲3523.06 ▲0.01699.76 ▲42.4254.22 ▲2.10
Media Library /wp-admin/upload.php1,405 ▲204.22 ▲0.0198.59 ▼5.7244.57 ▼1.74

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
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/phpsword-favicon-manager/index.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; PhpswFaviconManager has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • PhpswFaviconManagerOptions
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/phpsword-favicon-manager/index.php:162

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

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

"Pk Favicon Manager" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 275 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("phpsword-favicon-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

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/favicon.png1.39KB0.44KB▼ 68.11%