68% theme-options-z

Code Review | Theme Options Z

WordPress plugin Theme Options Z scored68%from 54 tests.

About plugin

  • Plugin page: theme-options-z
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Mar 31, 2016
  • Latest release: Oct 18, 2019
  • Number of updates: 17
  • Update frequency: every 160.7 days
  • Top authors: shyammakwana (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /5,607 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼37.16ms] Passed 4 tests

An overview of server-side resources used by Theme Options Z
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0338.87 ▼5.75
Dashboard /wp-admin3.06 ▼0.3326.38 ▼40.21
Posts /wp-admin/edit.php3.06 ▼0.3426.11 ▼26.27
Add New Post /wp-admin/post-new.php3.06 ▼2.8723.88 ▼74.88
Media Library /wp-admin/upload.php3.06 ▼0.2128.50 ▼7.27
Theme Options Z /wp-admin/options-general.php?page=themeoptionsz3.0626.77

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Theme Options Z
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.16 ▼0.191.58 ▼0.1041.67 ▲1.21
Dashboard /wp-admin2,199 ▲225.62 ▼0.0390.77 ▲3.1740.77 ▲2.27
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0636.60 ▼5.1634.11 ▼1.51
Add New Post /wp-admin/post-new.php1,531 ▲222.98 ▼0.08673.19 ▲66.4656.76 ▲6.11
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.16109.30 ▲9.2947.51 ▲3.96
Theme Options Z /wp-admin/options-general.php?page=themeoptionsz1,3053.5381.1330.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • 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 errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=themeoptionsz
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=themeoptionsz
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=themeoptionsz
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

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
The following issues need your attention
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/theme-options-z/inc/functions.php
    • > /wp-content/plugins/theme-options-z/inc/admin_html.php
    • > /wp-content/plugins/theme-options-z/inc/settings.php
    • > /wp-content/plugins/theme-options-z/theme-options-z.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

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

"Theme Options Z" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Simple yet flexible Theme Options plugin for any damn theme.

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 plugin667 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript376397386
PHP45763187
CSS114568
HTML201426

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
4 PNG files occupy 0.24MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png23.35KB8.14KB▼ 65.16%
screenshot-2.png114.43KB52.04KB▼ 54.53%
screenshot-1.png108.87KB48.36KB▼ 55.58%
images/move.png0.09KB0.10KB0.00%