77% movable-mobile-menu

Code Review | Movable Mobile Menu

WordPress plugin Movable Mobile Menu scored77%from 54 tests.

About plugin

  • Plugin page: movable-mobile-menu
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 11, 2021
  • Latest release: Jul 24, 2023
  • Number of updates: 25
  • Update frequency: every 35.7 days
  • Top authors: workbenchwtf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /987 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.56ms] Passed 4 tests

An overview of server-side resources used by Movable Mobile Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.75 ▼1.04
Dashboard /wp-admin3.36 ▲0.0548.73 ▼4.82
Posts /wp-admin/edit.php3.41 ▲0.0550.93 ▼0.58
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.06 ▲0.22
Media Library /wp-admin/upload.php3.28 ▲0.0538.99 ▲5.42
/wp-admin/options-general.php?page=movable-mobile-menu/movablemobilemenu.php3.2533.87

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Movable Mobile Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.55 ▼0.808.25 ▲6.6542.94 ▼4.89
Dashboard /wp-admin2,204 ▲275.63 ▼0.0291.53 ▼10.0139.25 ▼4.03
Posts /wp-admin/edit.php2,109 ▲92.01 ▲0.0739.28 ▲0.7535.49 ▼1.73
Add New Post /wp-admin/post-new.php1,533 ▲723.09 ▲0.10687.71 ▲21.9065.05 ▲6.61
Media Library /wp-admin/upload.php1,406 ▲64.22 ▲0.0698.10 ▼8.8641.40 ▼8.95
/wp-admin/options-general.php?page=movable-mobile-menu/movablemobilemenu.php8452.0223.4728.49

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/movable-mobile-menu/index.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/movable-mobile-menu/admin/help.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/movable-mobile-menu/admin/pro.php:2

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Requires php: Version format is invalid
You can look at the official readme.txt

movable-mobile-menu/movablemobilemenu.php 69% from 13 tests

Analyzing the main PHP file in "Movable Mobile Menu" version 1.0.1
It is important to fix the following:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("movable-mobile-menu.php" instead of "movablemobilemenu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin525 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53733316
PO File1224574105
JavaScript11326104

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
admin/img/open.png16.60KB6.41KB▼ 61.40%