84% mobile-navigation

Code Review | Mobile Navigation

WordPress plugin Mobile Navigation scored84%from 54 tests.

About plugin

  • Plugin page: mobile-navigation
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2015
  • Latest release: Jan 21, 2015
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: Jenst (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active /14,203 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.05MB] [CPU: ▼3.83ms] Passed 4 tests

This is a short check of server-side resources used by Mobile Navigation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.45 ▼3.00
Dashboard /wp-admin3.36 ▲0.0549.96 ▼2.45
Posts /wp-admin/edit.php3.47 ▲0.1152.06 ▼0.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.61 ▼9.11
Media Library /wp-admin/upload.php3.28 ▲0.0540.40 ▲4.04
Mobile navigation /wp-admin/options-general.php?page=mobile-navigation3.2839.17

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Mobile Navigation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲13913.52 ▼1.128.70 ▲6.6741.06 ▼0.86
Dashboard /wp-admin2,202 ▲225.59 ▲0.0186.80 ▼2.4737.38 ▼3.93
Posts /wp-admin/edit.php2,103 ▲62.03 ▲0.0241.23 ▲5.3636.17 ▼1.93
Add New Post /wp-admin/post-new.php1,538 ▲518.26 ▼4.93613.32 ▼34.3165.10 ▲8.23
Media Library /wp-admin/upload.php1,401 ▲14.21 ▲0.04102.16 ▼7.3444.11 ▼2.22
Mobile navigation /wp-admin/options-general.php?page=mobile-navigation1,4043.7754.7029.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mobile-navigation/settings-array.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-navigation/register-settings-api.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-navigation/register-settings-api.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: responsive, navigation, nav, menu, mobile

mobile-navigation/mobile-navigation.php 92% from 13 tests

This is the main PHP file of "Mobile Navigation" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Make the plugin description longer than 10 characters (currently 0 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,380 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP360175905
Sass52927250
CSS131173
JavaScript18052

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity86.00
▷ Minimum class complexity31.00
▷ Maximum class complexity141.00
Average method complexity5.15
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin