10% wp-tuning

Code Review | WP Tuning

WordPress plugin WP Tuning scored10%from 54 tests.

About plugin

  • Plugin page: wp-tuning
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.4
  • WordPress version: 6.3.1
  • First release: Jan 12, 2015
  • Latest release: Dec 31, 2015
  • Number of updates: 5
  • Update frequency: every 71.8 days
  • Top authors: gl_SPICE (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /896 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+96
    Undefined index: used_res_admin

Server metrics [RAM: ▼1.84MB] [CPU: ▼55.78ms] Passed 4 tests

Analyzing server-side resources used by WP Tuning
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.325.37 ▼36.71
Dashboard /wp-admin2.17 ▼1.146.19 ▼47.48
Posts /wp-admin/edit.php2.17 ▼1.197.06 ▼47.34
Add New Post /wp-admin/post-new.php2.17 ▼3.726.29 ▼91.57
Media Library /wp-admin/upload.php2.17 ▼1.066.31 ▼30.99
WP Tuning /wp-admin/options-general.php?page=wp-tuning-options2.176.50

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Tuning
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▲0.051.63 ▼0.2746.20 ▼1.49
Dashboard /wp-admin2,202 ▲225.57 ▼0.0289.21 ▲3.3938.90 ▼2.93
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0134.03 ▼8.2737.10 ▲2.07
Add New Post /wp-admin/post-new.php1,531 ▲322.89 ▼0.18612.56 ▼42.1547.50 ▼4.95
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.0098.67 ▼0.4242.34 ▼1.19
WP Tuning /wp-admin/options-general.php?page=wp-tuning-options9612.1323.8129.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+96
    Undefined index: used_res_admin
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% 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 errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+96
    Undefined index: used_res_admin
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+99
    Undefined index: used_res_theme
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+104
    Undefined index: feeds_disable
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+114
    Undefined index: emoji_disable
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+127
    Undefined index: locations_theme_uri
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+130
    Undefined index: insert_analytics_to_footer
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_rsd_link
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_wp_generator
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_feed_links
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_feed_links_extra
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_index_rel_link
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_wlwmanifest_link
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_parent_post_rel_link
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_start_post_rel_link
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_adjacent_posts_rel_link
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_adjacent_posts_rel_link_wp_head
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+165
    Undefined index: header_cleanup_wp_shortlink_wp_head
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+232
    Undefined variable: section
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+232
    Trying to access array offset on value of type null
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-tuning-options
    • > Notice in wp-content/plugins/wp-tuning/wp-tuning.php+279
    Undefined index: value

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-tuning/wp-tuning.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
  • Screenshots: Screenshot #1 (Plugin Settings) image missing
You can look at the official readme.txt

wp-tuning/wp-tuning.php Passed 13 tests

The main file in "WP Tuning" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Quick and usefull wordpress tunes!

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
Everything looks great! No dangerous files found in this plugin266 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26724266

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.18KB14.67KB▼ 51.39%