83% gp-ux-optimized-mobile-menu

Code Review | GP UX Optimized Mobile Menu

WordPress plugin GP UX Optimized Mobile Menu scored83%from 54 tests.

About plugin

  • Plugin page: gp-ux-optimized-m...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2019
  • Latest release: Apr 24, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: rguillermo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /511 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by GP UX Optimized Mobile Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.62 ▼6.36
Dashboard /wp-admin3.31 ▲0.0044.28 ▼3.55
Posts /wp-admin/edit.php3.36 ▲0.0047.57 ▲0.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.19 ▼2.39
Media Library /wp-admin/upload.php3.23 ▲0.0036.23 ▲3.92

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for GP UX Optimized Mobile Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.16 ▼1.221.76 ▲0.1138.78 ▼4.29
Dashboard /wp-admin2,206 ▲185.86 ▲0.97106.08 ▼4.9139.84 ▼3.28
Posts /wp-admin/edit.php2,089 ▼02.12 ▲0.1239.66 ▲2.3134.72 ▲2.37
Add New Post /wp-admin/post-new.php1,517 ▼1617.82 ▼5.55661.59 ▼28.2752.71 ▼5.69
Media Library /wp-admin/upload.php1,382 ▼94.17 ▼0.0295.84 ▼12.1141.64 ▼4.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gp-ux-optimized-mobile-menu/gp-ux-optimized-mobile-menu.php:13

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 90% from 29 tests

readme.txt 81% 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
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Screenshot_1.jpg), #2 (Screeshot_2.jpg)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === gp-ux-optimized-mobile-menu === )
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

gp-ux-optimized-mobile-menu/gp-ux-optimized-mobile-menu.php Passed 13 tests

The primary PHP file in "GP UX Optimized Mobile Menu" version 1.0 is used by WordPress to initiate all plugin functionality
67 characters long description:
Convert the standart GP menu in UX optimized menu for mobile users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1396

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin