10% wp-admin-formatter-customize-admin-panel

Code Review | WP Admin Formatter - Customize Admin Panel

WordPress plugin WP Admin Formatter - Customize Admin Panel scored10%from 54 tests.

About plugin

  • Plugin page: wp-admin-formatte...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2015
  • Latest release: Apr 29, 2015
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: tahirdx15 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,854 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-admin-formatter-customize-admin-panel/index.php+8
    Constant WP_DEBUG already defined

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.93ms] Passed 4 tests

Server-side resources used by WP Admin Formatter - Customize Admin Panel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.15 ▼36.81
Dashboard /wp-admin2.05 ▼1.266.01 ▼46.61
Posts /wp-admin/edit.php2.05 ▼1.315.76 ▼38.78
Add New Post /wp-admin/post-new.php2.05 ▼3.846.20 ▼89.51
Media Library /wp-admin/upload.php2.05 ▼1.188.36 ▼27.69
Formatter Settings /wp-admin/options-general.php?page=wpaf_formatter_plugin_options2.055.54

Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • The plugin illegally modified 4 files (0.00KB) outside of "wp-content/plugins/wp-admin-formatter-customize-admin-panel/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/wp-admin-formatter-customize-admin-panel/assets/banner-772\303\227250.png"
    • (new file) "wp-content/plugins/wp-admin-formatter-customize-admin-panel/assets/icon-128\303\227128.png"
    • (new file) "wp-content/plugins/wp-admin-formatter-customize-admin-panel/assets/icon-256\303\227256.png"
    • (new file) "wp-content/plugins/wp-admin-formatter-customize-admin-panel/assets/banner-1544\303\227500.png"
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Admin Formatter - Customize Admin Panel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.38 ▼0.022.27 ▲0.4142.73 ▲1.46
Dashboard /wp-admin2,220 ▲465.82 ▲0.2286.48 ▼0.8139.43 ▲0.95
Posts /wp-admin/edit.php2,130 ▲302.30 ▲0.2940.46 ▼0.1633.91 ▼3.45
Add New Post /wp-admin/post-new.php1,545 ▲1023.58 ▲5.15626.05 ▲8.1237.06 ▼34.51
Media Library /wp-admin/upload.php1,422 ▲254.57 ▲0.3397.74 ▼5.7242.13 ▼3.22
Formatter Settings /wp-admin/options-general.php?page=wpaf_formatter_plugin_options1,3562.5855.3729.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wp-admin-formatter-customize-admin-panel/index.php+8
    Constant WP_DEBUG already defined
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wpaf_formatter_plugin_options
    • > Notice in wp-content/plugins/wp-admin-formatter-customize-admin-panel/index.php+8
    Constant WP_DEBUG already defined
    • > GET request to /wp-admin/options-general.php?page=wpaf_formatter_plugin_options
    • > Deprecated in wp-content/plugins/wp-admin-formatter-customize-admin-panel/index.php+255
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=wpaf_formatter_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wpaf_formatter_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-formatter-customize-admin-panel/index.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=wpaf_formatter_plugin_options
    • > Network (severe)
    wp-content/plugins/featurePlugin/css/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-admin-formatter-customize-admin-panel/index.php 92% from 13 tests

The main PHP file in "WP Admin Formatter - Customize Admin Panel" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-admin-formatter-customize-admin-panel.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin751 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2202186730
CSS12118
JavaScript1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 1.52MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772×250.png101.82KB31.36KB▼ 69.20%
assets/screenshot-2.png76.46KB31.22KB▼ 59.17%
assets/icon-128x128.png15.76KB5.05KB▼ 67.99%
images/hs.png2.62KB7.54KB0.00%
images/hv.png2.80KB7.32KB0.00%