78% easy-theme-options

Code Review | Easy Theme Options

WordPress plugin Easy Theme Options scored78%from 54 tests.

About plugin

  • Plugin page: easy-theme-options
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 31, 2012
  • Latest release: Jun 2, 2012
  • Number of updates: 16
  • Update frequency: every 0.9 days
  • Top authors: corsonr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /9,184 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.03ms] Passed 4 tests

Server-side resources used by Easy Theme Options
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.95 ▼5.88
Dashboard /wp-admin3.34 ▲0.0446.43 ▼3.23
Posts /wp-admin/edit.php3.39 ▲0.0347.25 ▲2.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.64 ▼2.82
Media Library /wp-admin/upload.php3.27 ▲0.0335.58 ▼0.20
ETO Import / Export /wp-admin/options-general.php?page=eto-import-export3.2330.44
Theme Options /wp-admin/themes.php?page=eto-settings3.2226.50

Server storage [IO: ▲0.86MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Theme Options
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.31 ▼0.931.79 ▼0.3846.45 ▲0.13
Dashboard /wp-admin2,217 ▲375.90 ▲0.99104.02 ▼5.8240.04 ▼2.38
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0433.88 ▼0.8434.70 ▲1.85
Add New Post /wp-admin/post-new.php1,539 ▲823.29 ▲4.86650.85 ▲47.6656.43 ▼6.96
Media Library /wp-admin/upload.php1,396 ▲84.16 ▼0.1098.81 ▼2.7354.64 ▲10.65
ETO Import / Export /wp-admin/options-general.php?page=eto-import-export8412.0524.5628.08
Theme Options /wp-admin/themes.php?page=eto-settings1,5043.0653.4937.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=eto-settings
    • > Notice in wp-content/plugins/easy-theme-options/includes/functions/eto_functions.php+237
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/themes.php?page=eto-settings
    • > User deprecated in wp-includes/functions.php+5737
    Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The home option is deprecated for the family of bloginfo() functions. Use the url option instead.

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
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-theme-options/includes/shortcodes.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-theme-options/includes/options.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easy-theme-options/easy-theme-options.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-theme-options/includes/functions/eto_functions.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (The main screen), #2 (Special fields types), #3 (Advanced Fields Types), #4 (Other advanced Fields Types), #5 (Code to create Fields (documentation included)), #6 (Import / Export feature), #7 (Shortcodes to display data), #8 (Help (included))
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can look at the official readme.txt

easy-theme-options/easy-theme-options.php Passed 13 tests

The entry point to "Easy Theme Options" version 1.0 is a PHP file that has certain tags in its header comment area
112 characters long description:
This plugin adds the ability to create as many site options as you want to customize your theme or your website.

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
No dangerous file extensions were detected2,923 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4146451,298
PHP7193125805
CSS335150596
PO File2117165224

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
38 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/js/hv.png2.80KB7.32KB0.00%
includes/images/colorpicker/colorpicker_rgb_r.png1.04KB0.77KB▼ 26.17%
includes/images/colorpicker/custom_hsb_h.png0.95KB0.73KB▼ 23.40%
includes/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
includes/css/images/ui-bg_inset-soft_95_fef1ec_1x100.png0.12KB0.16KB0.00%