10% additional-wp-tweaks-options

Code Review | Few WP Tweaks and options

WordPress plugin Few WP Tweaks and options scored10%from 54 tests.

About plugin

  • Plugin page: additional-wp-twe...
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4+
  • WordPress version: 6.3.1
  • First release: Feb 24, 2023
  • Latest release: Feb 24, 2023
  • Number of updates: 15
  • Update frequency: N/A
  • Top authors: ttodua (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /135 total downloads


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
    • > Error in wp-content/plugins/additional-wp-tweaks-options/library_wp.php+1929
    Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/additional-wp-tweaks-options/library_wp.php:1929
    Stack trace:
    #0 wp-content/plugins/additional-wp-tweaks-options/library_wp.php(1863): Puvox\wp_plugin->is_not_bulk_activation()
    #1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(720): do_action()

Server metrics [RAM: ▲2.11MB] [CPU: ▲9.61ms] Passed 4 tests

A check of server-side resources used by Few WP Tweaks and options
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.57 ▲2.1150.84 ▲9.72
Dashboard /wp-admin5.46 ▲2.1657.91 ▲12.62
Posts /wp-admin/edit.php5.51 ▲2.1659.04 ▲14.21
Add New Post /wp-admin/post-new.php7.98 ▲2.10104.42 ▲1.87
Media Library /wp-admin/upload.php5.32 ▲2.1050.90 ▲17.06
Extra Tweaks /wp-admin/options-general.php?page=extra-wp-tweaks-options5.3150.02

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Few WP Tweaks and options: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.72 ▼0.901.86 ▼0.1950.60 ▲3.53
Dashboard /wp-admin2,217 ▲325.80 ▼0.0698.75 ▼5.2340.19 ▲3.81
Posts /wp-admin/edit.php2,100 ▲111.98 ▼0.0138.48 ▼1.1833.32 ▼6.55
Add New Post /wp-admin/post-new.php1,543 ▲1523.19 ▲5.12608.60 ▼5.2355.53 ▲1.80
Media Library /wp-admin/upload.php1,399 ▲144.21 ▼0.0399.35 ▼2.7345.45 ▲2.53
Extra Tweaks /wp-admin/options-general.php?page=extra-wp-tweaks-options1,4432.1531.4569.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_extra_wp_tweaks_options__errors_log
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • extra-wp-tweaks-options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/additional-wp-tweaks-options/library_wp.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

additional-wp-tweaks-options/index.php 85% from 13 tests

The main PHP script in "Few WP Tweaks and options" version 1.02 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("additional-wp-tweaks-options.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,172 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity233.43
▷ Minimum class complexity13.00
▷ Maximum class complexity994.00
Average method complexity3.01
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods12015.19%
▷ Public methods78799.62%
▷ Protected methods00.00%
▷ Private methods30.38%
▷ Named functions00.00%
▷ Anonymous functions86100.00%
▷ Global constants2100.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
No PNG images were found in this plugin