83% many-tips-together

Code Review | Admin Tweaks

WordPress plugin Admin Tweaks scored83%from 54 tests.

About plugin

  • Plugin page: many-tips-together
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2011
  • Latest release: Apr 20, 2023
  • Number of updates: 150
  • Update frequency: every 28.3 days
  • Top authors: brasofilo (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

1,000+ active /34,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲3.80MB] [CPU: ▲46.66ms] Passed 4 tests

Server-side resources used by Admin Tweaks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /7.21 ▲3.7595.62 ▲53.34
Dashboard /wp-admin7.12 ▲3.81104.30 ▲51.54
Posts /wp-admin/edit.php7.17 ▲3.8299.59 ▲44.67
Add New Post /wp-admin/post-new.php9.77 ▲3.88141.47 ▲37.09
Media Library /wp-admin/upload.php7.07 ▲3.8492.91 ▲55.58
Admin Tweaks /wp-admin/options-general.php?page=admintweaks8.79224.91
Redux /wp-admin/options-general.php?page=redux-framework7.0588.47

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 882 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
b5f_admin_tweaks-transients
b5f_admin_tweaks-support
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
b5f_admin_tweaks

Browser metrics Passed 4 tests

Checking browser requirements for Admin Tweaks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲4814.25 ▼0.271.97 ▼0.0243.79 ▼4.60
Dashboard /wp-admin2,200 ▲235.57 ▼0.01108.23 ▲13.4557.86 ▲17.38
Posts /wp-admin/edit.php2,113 ▲132.00 ▲0.0035.36 ▼1.1938.36 ▲2.49
Add New Post /wp-admin/post-new.php1,541 ▲1522.18 ▼0.99642.58 ▼29.6652.61 ▼3.65
Media Library /wp-admin/upload.php1,407 ▲44.18 ▼0.02109.33 ▲8.8744.42 ▼0.68
Admin Tweaks /wp-admin/options-general.php?page=admintweaks5,3625.85150.59109.43
Redux /wp-admin/options-general.php?page=redux-framework1,0553.3477.6186.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • b5f_admin_tweaks-transients
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 take a closer look at the following
  • 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/many-tips-together/inc/redux-core/inc/fields/raw/field_raw.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/many-tips-together/inc/redux-core/core/required.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/many-tips-together/inc/redux-core/inc/fields/spinner/field_spinner.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/many-tips-together/inc/redux-core/inc/fields/slider/field_slider.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/many-tips-together/inc/redux-core/inc/fields/image_select/field_image_select.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/many-tips-together/inc/redux-core/inc/fields/gallery/field_gallery.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/many-tips-together/inc/redux-core/inc/fields/checkbox/field_checkbox.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/many-tips-together/inc/redux-core/inc/fields/password/field_password.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/many-tips-together/inc/redux-core/inc/fields/multi_text/field_multi_text.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/many-tips-together/inc/redux-core/inc/fields/ace_editor/field_ace_editor.php:8

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: login, profile, pages, maintenance mode, admin interface...

many-tips-together/many-tips-together.php 85% from 13 tests

Analyzing the main PHP file in "Admin Tweaks" version 3.1
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected81,080 lines of code in 584 files:
LanguageFilesBlank linesComment linesLines of code
PHP2307,31313,05530,449
JavaScript1416,1653,45825,874
Sass951,9068412,862
CSS1116,64834010,946
SVG600946
Markdown1103

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 110)
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity34.48
▷ Minimum class complexity1.00
▷ Maximum class complexity341.00
Average method complexity5.46
▷ Minimum method complexity1.00
▷ Maximum method complexity110.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes161
▷ Abstract classes42.48%
▷ Concrete classes15797.52%
▷ Final classes00.00%
Methods1,212
▷ Static methods30224.92%
▷ Public methods95879.04%
▷ Protected methods13811.39%
▷ Private methods1169.57%
Functions21
▷ Named functions1257.14%
▷ Anonymous functions942.86%
Constants106
▷ Global constants43.77%
▷ Class constants10296.23%
▷ Public constants102100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
64 PNG files occupy 0.25MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/redux-core/assets/img/jquery-ui-bootstrap/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
assets/images/appearance-hide-help-tab.png9.60KB4.10KB▼ 57.26%
assets/images/general-email-verify.png8.58KB8.55KB0.39%
assets/images/kub-cog.png13.96KB9.63KB▼ 31.04%
inc/redux-core/assets/img/jquery-ui-bootstrap/ui-bg_highlight-soft_75_cccccc_1x100.png0.08KB0.17KB0.00%