83% screen-options-and-help-show-customize

Code Review | Screen Options and Help Show Customize

WordPress plugin Screen Options and Help Show Customize scored83%from 54 tests.

About plugin

  • Plugin page: screen-options-an...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.3-4.2.2
  • WordPress version: 6.3.1
  • First release: Dec 10, 2012
  • Latest release: May 13, 2015
  • Number of updates: 40
  • Update frequency: every 22.1 days
  • Top authors: gqevu6bsiz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /12,052 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼0.06ms] Passed 4 tests

This is a short check of server-side resources used by Screen Options and Help Show Customize
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1943.43 ▲0.84
Dashboard /wp-admin3.49 ▲0.1945.59 ▼4.64
Posts /wp-admin/edit.php3.61 ▲0.2551.16 ▲4.19
Add New Post /wp-admin/post-new.php6.08 ▲0.1991.15 ▼0.64
Media Library /wp-admin/upload.php3.42 ▲0.1937.44 ▲4.72
Screen Options and Help Show Customize /wp-admin/options-general.php?page=sohc3.4634.90

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Screen Options and Help Show Customize
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.66 ▼1.101.77 ▲0.0142.35 ▼4.79
Dashboard /wp-admin2,213 ▲315.85 ▲0.95100.39 ▼32.9539.93 ▼9.26
Posts /wp-admin/edit.php2,096 ▲71.99 ▲0.0240.29 ▲4.0835.81 ▲3.91
Add New Post /wp-admin/post-new.php1,550 ▲2518.38 ▼4.79590.04 ▼95.4573.13 ▲20.21
Media Library /wp-admin/upload.php1,395 ▲44.22 ▲0.0495.05 ▼10.7139.98 ▼4.90
Screen Options and Help Show Customize /wp-admin/options-general.php?page=sohc2,8541.8727.3133.51

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/screen-options-and-help-show-customize/screen-options-and-help-show-customize.php:47
    • > PHP Notice
      Trying to get property 'ClassData' of non-object in wp-content/plugins/screen-options-and-help-show-customize/inc/setting_other.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_all_user_roles() on null in wp-content/plugins/screen-options-and-help-show-customize/inc/setting.php:5
    • > PHP Notice
      Undefined variable: Sohc in wp-content/plugins/screen-options-and-help-show-customize/inc/information.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function is_donated() on null in wp-content/plugins/screen-options-and-help-show-customize/inc/information.php:1
    • > PHP Notice
      Trying to get property 'ClassConfig' of non-object in wp-content/plugins/screen-options-and-help-show-customize/inc/setting.php on line 5
    • > PHP Notice
      Trying to get property 'ClassInfo' of non-object in wp-content/plugins/screen-options-and-help-show-customize/inc/information.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_data_others() on null in wp-content/plugins/screen-options-and-help-show-customize/inc/setting_other.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Settings Interface) image missing
Please take inspiration from this readme.txt

screen-options-and-help-show-customize/screen-options-and-help-show-customize.php 92% from 13 tests

The principal PHP file in "Screen Options and Help Show Customize" v. 1.3.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin1,523 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP8688261,160
PO File27582203
CSS2100142
JavaScript16018

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity35.40
▷ Minimum class complexity19.00
▷ Maximum class complexity54.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods59
▷ Static methods00.00%
▷ Public methods59100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.26KB10.10KB▼ 60.03%