84% dashboard-option-menu-customize

Code Review | Dashboard Option Menu Customize

WordPress plugin Dashboard Option Menu Customize scored84%from 54 tests.

About plugin

  • Plugin page: dashboard-option-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Sep 28, 2012
  • Latest release: May 16, 2013
  • Number of updates: 9
  • Update frequency: every 25.6 days
  • Top authors: gqevu6bsiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,719 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Dashboard Option Menu Customize
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.45 ▼1.27
Dashboard /wp-admin3.34 ▼0.0047.13 ▼9.89
Posts /wp-admin/edit.php3.39 ▲0.0345.42 ▲1.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.97 ▼8.40
Media Library /wp-admin/upload.php3.26 ▲0.0334.44 ▼1.71
Dashboard menu Setting /wp-admin/options-general.php?page=dashboard_option_menu_customize3.2329.69

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Dashboard Option Menu Customize
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.78 ▲0.401.86 ▲0.2144.29 ▲3.22
Dashboard /wp-admin2,213 ▲225.84 ▲0.94102.17 ▼0.6937.26 ▼4.32
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0536.23 ▲0.0535.40 ▲3.83
Add New Post /wp-admin/post-new.php1,517 ▼417.44 ▼5.94657.58 ▼28.5955.63 ▼21.92
Media Library /wp-admin/upload.php1,392 ▲104.25 ▲0.0698.24 ▲0.0541.99 ▼3.58
Dashboard menu Setting /wp-admin/options-general.php?page=dashboard_option_menu_customize1,0272.0623.5425.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/dashboard-option-menu-customize/dashboard-option-menu-customize.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Interface in setting), #2 (Dashboard screen)
The official readme.txt is a good inspiration

dashboard-option-menu-customize/dashboard-option-menu-customize.php Passed 13 tests

This is the main PHP file of "Dashboard Option Menu Customize" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
30 characters long description:
Customization options and help

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
Good job! No executable or dangerous file extensions detected249 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16641195
PO File121054

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png12.45KB5.31KB▼ 57.32%
screenshot-2.png14.70KB5.70KB▼ 61.23%