78% get-options

Code Review | Get Options

WordPress plugin Get Options scored78%from 54 tests.

About plugin

  • Plugin page: get-options
  • Plugin version: 2.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2012
  • Latest release: Oct 17, 2023
  • Number of updates: 44
  • Update frequency: every 97.2 days
  • Top authors: gilles66 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /3,687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.06ms] Passed 4 tests

An overview of server-side resources used by Get Options
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.67 ▲0.58
Dashboard /wp-admin3.31 ▲0.0148.91 ▼7.42
Posts /wp-admin/edit.php3.36 ▲0.0043.48 ▲2.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.72 ▲1.73
Media Library /wp-admin/upload.php3.23 ▲0.0034.87 ▲0.86
Get Options /wp-admin/tools.php?page=all_options3.2627.66

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Get Options
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.211.68 ▲0.0145.62 ▼1.96
Dashboard /wp-admin2,199 ▲225.49 ▼0.1382.61 ▼20.1539.20 ▼6.18
Posts /wp-admin/edit.php2,104 ▲11.97 ▲0.0133.52 ▼2.0432.45 ▼2.71
Add New Post /wp-admin/post-new.php1,540 ▲1418.41 ▼5.19598.39 ▼95.6561.45 ▲4.87
Media Library /wp-admin/upload.php1,404 ▲14.15 ▼0.0495.13 ▼5.8642.87 ▼1.63
Get Options /wp-admin/tools.php?page=all_options18,5481.2136.6956.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=all_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/tools.php?page=all_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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-options/get-options.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/get-options/inc/page-content.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (The new submenu in the Tools menu.), #2 (The serialized data, easily readable and human friendly.)
Please take inspiration from this readme.txt

get-options/get-options.php Passed 13 tests

The main PHP file in "Get Options" ver. 2.6.0 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
View all the WordPress Options, even the serialized ones !

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin186 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21620159
PO File18027

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.08MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png57.72KB24.99KB▼ 56.71%
(invalid) screenshot-1.png25.06KB0.00KB▼ 100.00%
img/check.png0.99KB0.13KB▼ 86.96%