84% tweak-hidden-options

Code Review | Tweak Hidden Options

WordPress plugin Tweak Hidden Options scored 84% from 54 tests.

About plugin

  • Plugin page: tweak-hidden-options
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Jan 20, 2015
  • Latest release: Dec 12, 2015
  • Number of updates: 9
  • Update frequency: every 42.6 days
  • Top authors: stubgo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,510 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.66ms] Passed 4 tests

Analyzing server-side resources used by Tweak Hidden Options
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.74 ▼7.00
Dashboard /wp-admin3.33 ▲0.0246.66 ▼3.32
Posts /wp-admin/edit.php3.38 ▲0.0249.28 ▲3.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.75 ▼9.11
Media Library /wp-admin/upload.php3.25 ▲0.0234.54 ▲0.81
Tweak Hidden Options /wp-admin/options-general.php?page=tweak-hidden-options3.2131.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Tweak Hidden Options
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.31 ▼1.071.78 ▲0.1240.89 ▲2.35
Dashboard /wp-admin2,212 ▲214.84 ▼0.07108.05 ▲4.7339.87 ▼2.53
Posts /wp-admin/edit.php2,095 ▲62.01 ▲0.0239.08 ▲4.2035.60 ▼0.57
Add New Post /wp-admin/post-new.php1,539 ▲1123.23 ▲4.88657.40 ▲21.2760.11 ▼1.66
Media Library /wp-admin/upload.php1,394 ▲64.21 ▼0.0595.97 ▲0.1044.67 ▼2.73
Tweak Hidden Options /wp-admin/options-general.php?page=tweak-hidden-options9822.0624.4728.23

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tweak-hidden-options/options-page.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tweak-hidden-options/tweak-hidden-options.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tweak-hidden-options/options-functions.php:3

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: config, options, configuration, gzip

tweak-hidden-options/tweak-hidden-options.php Passed 13 tests

The main file in "Tweak Hidden Options" v. 1.01 serves as a complement to information provided in readme.txt and as the entry point to the plugin
120 characters long description:
Tweak Hidden Options is a safe and easy-to-use way to modify, tweak, and change various hidden options within WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin111 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3841111

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin