10% move-site-icon-to-settings

Code Review | Move Site Icon To Settings

WordPress plugin Move Site Icon To Settings scored10%from 54 tests.

About plugin

  • Plugin page: move-site-icon-to...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4
  • WordPress version: 6.3.1
  • First release: Nov 16, 2015
  • Latest release: Dec 11, 2015
  • Number of updates: 8
  • Update frequency: every 3.1 days
  • Top authors: gregreindel (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,652 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/move-site-icon-to-settings/class-msits-site-icon.php+83
    Cannot use "parent" when current class scope has no parent

Server metrics [RAM: ▼1.80MB] [CPU: ▼50.71ms] Passed 4 tests

Server-side resources used by Move Site Icon To Settings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.284.26 ▼34.88
Dashboard /wp-admin2.20 ▼1.106.34 ▼42.90
Posts /wp-admin/edit.php2.20 ▼1.156.72 ▼36.15
Add New Post /wp-admin/post-new.php2.20 ▼3.686.88 ▼88.89
Media Library /wp-admin/upload.php2.20 ▼1.025.07 ▼30.92
/wp-admin/admin.php?page=msits-site_icon-upload2.206.37

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Move Site Icon To Settings
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲16614.71 ▲0.331.65 ▼0.1639.48 ▼2.46
Dashboard /wp-admin2,346 ▲1556.45 ▲1.57123.97 ▲21.1137.82 ▼6.56
Posts /wp-admin/edit.php2,252 ▲1633.31 ▲1.2947.86 ▲13.5833.15 ▼2.32
Add New Post /wp-admin/post-new.php1,533 ▲1923.12 ▲5.47620.38 ▼82.7135.54 ▼26.31
Media Library /wp-admin/upload.php1,388 ▲34.11 ▼0.0677.82 ▼31.2640.26 ▼12.75
/wp-admin/admin.php?page=msits-site_icon-upload9753.0238.6628.79

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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/move-site-icon-to-settings/class-msits-site-icon.php+83
    Cannot use "parent" when current class scope has no parent
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=msits-site_icon-upload
    • > Deprecated in wp-content/plugins/move-site-icon-to-settings/class-msits-site-icon.php+95
    Cannot use "parent" when current class scope has no parent

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/move-site-icon-to-settings/msits-site-icon.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_verify_nonce() in wp-content/plugins/move-site-icon-to-settings/upload-site-icon.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
2 plugin tags: site icon, customizer

move-site-icon-to-settings/msits-site-icon.php 92% from 13 tests

The main file in "Move Site Icon To Settings" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("move-site-icon-to-settings.php" instead of "msits-site-icon.php")

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
Success! There were no dangerous files found in this plugin601 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3180255502
CSS10053
JavaScript18146

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity25.50
▷ Minimum class complexity3.00
▷ Maximum class complexity48.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods1655.17%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
browser.png46.48KB16.89KB▼ 63.66%