72% blurry-mobile-menu

Code Review | Blurry - Mobile menu

WordPress plugin Blurry - Mobile menu scored72%from 54 tests.

About plugin

  • Plugin page: blurry-mobile-menu
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Jul 20, 2015
  • Number of updates: 7
  • Update frequency: every 1.6 days
  • Top authors: looks_awesome (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /9,712 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.24ms] Passed 4 tests

A check of server-side resources used by Blurry - Mobile menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1344.08 ▼1.36
Dashboard /wp-admin3.42 ▲0.1154.48 ▲4.21
Posts /wp-admin/edit.php3.53 ▲0.1749.26 ▲0.81
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.29 ▼12.03
Media Library /wp-admin/upload.php3.34 ▲0.1137.54 ▲3.64
Blurry Mobile Nav /wp-admin/options-general.php?page=blurry-options3.3131.76

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blurry - Mobile menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲19113.48 ▼0.4910.25 ▲8.5142.29 ▼3.84
Dashboard /wp-admin2,202 ▲255.65 ▼0.0191.51 ▼3.7544.12 ▲1.39
Posts /wp-admin/edit.php2,104 ▲11.97 ▼0.0735.56 ▼4.4233.81 ▼2.81
Add New Post /wp-admin/post-new.php1,529 ▲323.41 ▲0.41695.92 ▲45.4565.50 ▲5.29
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.02105.16 ▲1.2944.23 ▼2.22
Blurry Mobile Nav /wp-admin/options-general.php?page=blurry-options1,9752.8656.9356.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=blurry-options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=blurry-options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/blurry-mobile-menu/blurry.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/blurry-mobile-menu/blurry.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/blurry-mobile-menu/options-page.php:43
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blurry-mobile-menu/blurry.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/blurry-mobile-menu/main.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blurry-mobile-menu/blurry.php on line 80
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/blurry-mobile-menu/blurry.php on line 80
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blurry-mobile-menu/blurry.php on line 57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blurry-mobile-menu/settings.php:3
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/blurry-mobile-menu/blurry.php on line 57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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: Please delete some tags, you are using 15 tag instead of maximum 10
Please take inspiration from this readme.txt

blurry-mobile-menu/main.php 85% from 13 tests

The main PHP file in "Blurry - Mobile menu" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blurry-mobile-menu.php" instead of "main.php")

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
There were no executable files found in this plugin6,811 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS3417782,815
JavaScript56632522,727
PHP419634818
SVG100414
PO File192137

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/menu-shadows.png10.48KB5.38KB▼ 48.62%
img/sprite.png6.40KB2.95KB▼ 54.00%
img/alpha10.png0.98KB0.10KB▼ 90.02%
img/alpha50.png0.91KB0.09KB▼ 89.64%
img/separator1-2x.png0.96KB0.48KB▼ 49.59%